absolute-path cache dirs.
if not self.options['cache']:
return getChecksum(self.options['sumtype'], fo)
- csumtag = '%s-%s' % (self.hdr['name'] , self.hdr['hdrid'])
+ csumtag = '%s-%s' % (self.hdr['name'] , self.hdr[rpm.RPMTAG_SHA1HEADER])
csumfile = '%s/%s' % (self.options['cachedir'], csumtag)
if os.path.exists(csumfile):
csumo = open(csumfile, 'r')
errorprint(_('This option is deprecated'))
elif arg in ['-c', '--cachedir']:
cmds['cache'] = True
+ if not os.path.isabs(a):
+ a = os.path.join(os.getcwd(), a)
cmds['cachedir'] = a
if not checkAndMakeDir(a):
errorprint(_('Error: cannot open/write to cache dir %s' % a))