From cfc48cac26e09cc3d6528ad1873e68f97a4e710f Mon Sep 17 00:00:00 2001 From: brent s Date: Sat, 17 Nov 2018 03:24:38 -0500 Subject: [PATCH] fixing bug in find_changed_confs with symlink-skipping --- centos/find_changed_confs.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/centos/find_changed_confs.py b/centos/find_changed_confs.py index 579b089..d90de36 100755 --- a/centos/find_changed_confs.py +++ b/centos/find_changed_confs.py @@ -92,8 +92,9 @@ class PkgChk(object): (self.flst[f]['hash'] != self.pkgfilemap[p][f]['hash'])): if not self.symlinks: - if re.search('^0+$', - self.pkgfilemap[p][f]['hash']): + if ((not self.pkgfilemap[p][f]['hash']) + or re.search('^0+$', + self.pkgfilemap[p][f]['hash'])): continue r_time = datetime.datetime.fromtimestamp( self.pkgfilemap[p][f]['date'])