UploadProcessor.processChangesFile does this in the case that the PPA is not found:
archive = distribution.getAllPPAs()[0]
UploadProcessor .processChanges File does this in the case that the PPA is not found:
archive = distribution. getAllPPAs( )[0]