This saves it all for broken packages by hand (deleted files on purpose) or changed config files
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user