From 346bd9654dece95c128a71c90975a30d2811fe4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Tue, 20 Jun 2006 09:55:53 +0000 Subject: [PATCH] * i swapped the order of if/else there but forgot to change == to != --- pisi/atomicoperations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pisi/atomicoperations.py b/pisi/atomicoperations.py index f1ae8d5b..a449d256 100644 --- a/pisi/atomicoperations.py +++ b/pisi/atomicoperations.py @@ -294,7 +294,7 @@ class Install(AtomicOperation): if newf.type == 'config' and oldf.type == 'config': # config upgrade fpath = pisi.util.join_path(ctx.config.dest_dir(), oldf.path) try: - if pisi.util.sha1_file(fpath) == fileinfo.hash: + if pisi.util.sha1_file(fpath) != fileinfo.hash: # old config file changed, don't overwrite config_changed.append(fpath) if os.path.exists(fpath + '.old'):