From 45d914c2a622daf36f8523625424b656260e4ef7 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Sun, 26 Apr 2015 12:33:57 +0200 Subject: [PATCH] update-suite: Handle case of not installing new packages. --- dak/update_suite.py | 4 ++++ 1 file changed, 4 insertions(+) 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: -- 2.39.2