createrepo/__init__.py

[email protected] (James Antill)
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
 createrepo/__init__.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 5a5de05b5564d9f696f5999b66c1ae0c16c4322f
Author: James Antill <[email protected]>
Date:   Mon May 12 08:48:17 2008 -0400

    Pass just dir. to getFileList(), makes -C work. Fixes bug#446040

diff --git a/createrepo/__init__.py b/createrepo/__init__.py
index 1d539b3..4fce0bd 100644
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
@@ -258,7 +258,8 @@ class MetaDataGenerator:
         """check the timestamp of our target dir. If it is not newer than the repodata
            return False, else True"""
         if self.conf.checkts:
-            files = self.getFileList(self.conf.basedir, self.conf.directory, '.rpm')
+            dn = os.path.join(self.conf.basedir, self.conf.directory)
+            files = self.getFileList(dn, '.rpm')
             files = self.trimRpms(files)
             for f in files:
                 fn = os.path.join(self.conf.basedir, self.conf.directory, f)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.