Fix a bug in delta package creation where permission changed files are not taken into delta package.
This commit is contained in:
@@ -104,8 +104,9 @@ def find_delta(oldfiles, newfiles):
|
|||||||
for f in newfiles.list:
|
for f in newfiles.list:
|
||||||
hashto_files.setdefault(f.hash, []).append(f)
|
hashto_files.setdefault(f.hash, []).append(f)
|
||||||
|
|
||||||
files_new = set(map(lambda x:x.hash, newfiles.list))
|
# Find hash or permission changed files
|
||||||
files_old = set(map(lambda x:x.hash, oldfiles.list))
|
files_new = set(map(lambda x:x.hash+x.mode, newfiles.list))
|
||||||
|
files_old = set(map(lambda x:x.hash+x.mode, oldfiles.list))
|
||||||
files_delta = files_new - files_old
|
files_delta = files_new - files_old
|
||||||
|
|
||||||
deltas = []
|
deltas = []
|
||||||
|
|||||||
Reference in New Issue
Block a user