[Yum-devel] [PATCH] no repomd.xml && --checkts: skip .rpm timestamp checking. BZ 877301
Zdeněk Pavlas
zpavlas at redhat.com
Fri Dec 14 10:20:26 UTC 2012
---
createrepo/__init__.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/createrepo/__init__.py b/createrepo/__init__.py
index a52ec9e..1b18a9f 100644
--- a/createrepo/__init__.py
+++ b/createrepo/__init__.py
@@ -327,7 +327,7 @@ class MetaDataGenerator:
def checkTimeStamps(self):
"""check the timestamp of our target dir. If it is not newer than
the repodata return False, else True"""
- if self.conf.checkts:
+ if self.conf.checkts and self.conf.mdtimestamp:
dn = os.path.join(self.conf.basedir, self.conf.directory)
files = self.getFileList(dn, '.rpm')
files = self.trimRpms(files)
--
1.7.4.4
More information about the Yum-devel
mailing list