From: Ansgar Burchardt Date: Sun, 26 Apr 2015 10:33:57 +0000 (+0200) Subject: update-suite: Handle case of not installing new packages. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=45d914c2a622daf36f8523625424b656260e4ef7;p=dak.git update-suite: Handle case of not installing new packages. --- diff --git a/dak/update_suite.py b/dak/update_suite.py index 0d2de5ca..6043dd2c 100644 --- a/dak/update_suite.py +++ b/dak/update_suite.py @@ -187,6 +187,8 @@ class SuiteUpdater(object): .filter(ArchiveFile.archive_id == suite.archive_id) def install_binaries(self, binaries, suite): + if len(binaries) == 0: + return # If origin and target suites are in the same archive, we can skip the # overhead from ArchiveTransaction.copy_binary() if self.origin.archive_id == suite.archive_id: @@ -207,6 +209,8 @@ class SuiteUpdater(object): .filter(ArchiveFile.archive_id == suite.archive_id) def install_sources(self, sources, suite): + if len(sources) == 0: + return # If origin and target suites are in the same archive, we can skip the # overhead from ArchiveTransaction.copy_source() if self.origin.archive_id == suite.archive_id: