This saves it all for broken packages by hand (deleted files on purpose) or changed config files

This commit is contained in:
Faik Uygur
2009-12-21 09:08:06 +00:00
parent fc877b2687
commit 246aaa3e66
+1 -1
View File
@@ -153,7 +153,7 @@ def find_permission_changes(oldfiles, newfiles):
for h in unchanged: for h in unchanged:
for _file in files_new[h]: for _file in files_new[h]:
path = "/%s" % _file.path path = "/%s" % _file.path
if oct(stat.S_IMODE(os.stat(path)[stat.ST_MODE])) != _file.mode: if os.path.exists(path) and oct(stat.S_IMODE(os.stat(path)[stat.ST_MODE])) != _file.mode:
permissions.append((path, int(_file.mode, 8))) permissions.append((path, int(_file.mode, 8)))
return permissions return permissions