take timestamp of repomd.xml - not of repodata dir - just in case repodata
dir is empty, for some bizarre reason
raise MDError, _('error in must be able to write to metadata dir:\n -> %s') % filepath
if self.conf.checkts:
- timestamp = os.path.getctime(filepath)
- if timestamp > self.conf.mdtimestamp:
- self.conf.mdtimestamp = timestamp
+ # checking for repodata/repomd.xml - not just the data dir
+ rxml = filepath + '/repomd.xml'
+ if os.path.exists(rxml):
+ timestamp = os.path.getctime(rxml)
+ if timestamp > self.conf.mdtimestamp:
+ self.conf.mdtimestamp = timestamp
if self.conf.groupfile:
a = self.conf.groupfile