fatality
took me two whole (well almost) fucking WEEKS to notice this
This commit is contained in:
parent
af912dadc9
commit
b00b2c2d8f
1 changed files with 3 additions and 3 deletions
6
nman.py
6
nman.py
|
@ -54,13 +54,13 @@ def compare(all=False):
|
|||
for i in [i[1] for i in local_tree if i in remote_tree and i[0] == 0]:
|
||||
data = open(os.path.join(LOCAL_PATH, i), 'r').read()
|
||||
data = apply_env(data).encode()
|
||||
local_hash = sha1(data)
|
||||
local_hash = sha1(data).digest()
|
||||
|
||||
data = open(os.path.join(REMOTE_PATH, i), 'r').read()
|
||||
data = apply_env(data).encode()
|
||||
remote_hash = sha1(data)
|
||||
remote_hash = sha1(data).digest()
|
||||
|
||||
if all or local_hash == remote_hash:
|
||||
if all or local_hash != remote_hash:
|
||||
outdated += [(0, i)]
|
||||
|
||||
return {'create': remote_new, 'delete': local_new, 'sync': outdated}
|
||||
|
|
Loading…
Reference in a new issue