if we've not enabled the deltas, don't try to do them.
authorSeth Vidal <skvidal@fedoraproject.org>
Wed, 22 Apr 2009 18:16:22 +0000 (14:16 -0400)
committerSeth Vidal <skvidal@fedoraproject.org>
Wed, 22 Apr 2009 18:16:22 +0000 (14:16 -0400)
silly, but harmless in this case

createrepo/__init__.py

index 29a4b8daba487c5094f9c33e8b0abbb5dab360bc..5076143c30059aea7c285b52d01f9c5704d0d5f0 100644 (file)
@@ -499,7 +499,8 @@ class MetaDataGenerator:
                         self.callback.errorlog("\nError %s: %s\n" % (pkg, e))
                         continue
                     # we can use deltas:
-                    self._do_delta_rpm_package(po)
+                    if self.conf.deltas:
+                        self._do_delta_rpm_package(po)
 
                 else:
                     po = pkg