fixing bug in find_changed_confs with symlink-skipping

This commit is contained in:
brent s 2018-11-17 03:24:38 -05:00
parent 1fc59208b6
commit cfc48cac26

View File

@ -92,8 +92,9 @@ class PkgChk(object):
(self.flst[f]['hash'] != (self.flst[f]['hash'] !=
self.pkgfilemap[p][f]['hash'])): self.pkgfilemap[p][f]['hash'])):
if not self.symlinks: if not self.symlinks:
if re.search('^0+$', if ((not self.pkgfilemap[p][f]['hash'])
self.pkgfilemap[p][f]['hash']): or re.search('^0+$',
self.pkgfilemap[p][f]['hash'])):
continue continue
r_time = datetime.datetime.fromtimestamp( r_time = datetime.datetime.fromtimestamp(
self.pkgfilemap[p][f]['date']) self.pkgfilemap[p][f]['date'])