Take -D parameter into account when looking for file permission changes

This commit is contained in:
Fatih Aşıcı
2010-02-28 19:00:36 +00:00
parent 63e6498b5f
commit f5005bb796
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -7,6 +7,8 @@
* pisi/operations/check.py: Show missing files in the "check"
command output. Take "-D" parameter into account when checking
files.
* pisi/operations/delta.py: Take -D parameter into account
when looking for file permission changes.
2010-02-27 Fatih Aşıcı <fatih@pardus.org.tr>
* pisi/archive.py: Install files into correct paths when the old
+1 -1
View File
@@ -157,7 +157,7 @@ def find_permission_changes(oldfiles, newfiles):
permissions = []
for h in unchanged:
for _file in files_new[h]:
path = "/%s" % _file.path
path = os.path.join(ctx.config.dest_dir(), _file.path)
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)))