~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/archiveuploader/nascentupload.py

Merge with trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
893
893
                'Exception while accepting:\n %s' % e, exc_info=True)
894
894
            self.do_reject(notify)
895
895
            return False
896
 
        else:
897
 
            self.cleanUp()
898
 
 
899
 
    def cleanUp(self):
900
 
        if self.changes.dsc is not None:
901
 
            self.changes.dsc.cleanUp()
902
896
 
903
897
    def do_reject(self, notify=True):
904
898
        """Reject the current upload given the reason provided."""
929
923
        self.queue_root.notify(summary_text=self.rejection_message,
930
924
            changes_file_object=changes_file_object, logger=self.logger)
931
925
        changes_file_object.close()
932
 
        self.cleanUp()
933
926
 
934
927
    def _createQueueEntry(self):
935
928
        """Return a PackageUpload object."""