make sure when we want to look for rpms we say .rpm not rpm b/c with the latter we
authorSeth Vidal <skvidal@fedoraproject.org>
Mon, 3 Jan 2011 19:22:26 +0000 (14:22 -0500)
committerSeth Vidal <skvidal@fedoraproject.org>
Mon, 3 Jan 2011 19:22:26 +0000 (14:22 -0500)
catch .drpm files, too. :(

createrepo/__init__.py

index 6ea674e4a361020967bfd80b93a69a59ca2a6e6a..8d96474b8a3eb17c8d15eda904727e1a01246e8f 100644 (file)
@@ -786,7 +786,7 @@ class MetaDataGenerator:
         self._old_package_dict = {}
         opl = []
         for d in self.conf.oldpackage_paths:
-            for f in self.getFileList(d, 'rpm'):
+            for f in self.getFileList(d, '.rpm'):
                 fp = d + '/' + f
                 fpstat = os.stat(fp)
                 if int(fpstat[stat.ST_SIZE]) > self.conf.max_delta_rpm_size:
@@ -809,7 +809,7 @@ class MetaDataGenerator:
         # tag
         targets = {}
         results = []
-        for drpm_fn in self.getFileList(self.conf.deltadir, 'drpm'):
+        for drpm_fn in self.getFileList(self.conf.deltadir, '.drpm'):
             drpm_rel_fn = os.path.normpath(self.conf.delta_relative +
                                            '/' + drpm_fn) # this is annoying
             drpm_po = yumbased.CreateRepoPackage(self.ts,