]> git.decadent.org.uk Git - dak.git/commitdiff
update-suite: Handle case of not installing new packages.
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 26 Apr 2015 10:33:57 +0000 (12:33 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 26 Apr 2015 10:33:57 +0000 (12:33 +0200)
dak/update_suite.py

index 0d2de5ca5259704d37ed12496b1b82ab0868563b..6043dd2ccb9403b148ca6b3f73035c0dfce0a890 100644 (file)
@@ -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: