Take -D parameter into account when looking for file permission changes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user