Branch 'maintenance' - dumpMetadata.py
[email protected] (Seth Vidal)
| Newsgroups | gmane.linux.rpm.metadata |
|---|---|
| Message-ID | <[email protected]> |
dumpMetadata.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) New commits: commit 09b5ad693d6907f709827c4c3a43cce27dcd307a Author: Seth Vidal <[email protected]> Date: Mon Nov 26 14:58:08 2007 -0500 make checksum cache file more unique - patch from axel thimm closes bug #204167 diff --git a/dumpMetadata.py b/dumpMetadata.py index 07f7b07..723bb6d 100644 --- a/dumpMetadata.py +++ b/dumpMetadata.py @@ -602,7 +602,9 @@ class RpmMetaData: key = md5.new("".join(t)).hexdigest() - csumtag = '%s-%s' % (self.hdr['name'] , key) + csumtag = '%s-%s-%s-%s' % (os.path.basename(self.relativepath), + self.hdr[rpm.RPMTAG_SHA1HEADER], + self.size, self.mtime) csumfile = '%s/%s' % (self.options['cachedir'], csumtag) if os.path.exists(csumfile) and self.mtime <= os.stat(csumfile)[8]: csumo = open(csumfile, 'r')