diff --git a/pisi/atomicoperations.py b/pisi/atomicoperations.py index a62da97c..32a7f759 100644 --- a/pisi/atomicoperations.py +++ b/pisi/atomicoperations.py @@ -293,7 +293,7 @@ class Install(AtomicOperation): assert newf.path == oldf.path if newf.type == 'config' and oldf.type == 'config': # config upgrade fpath = pisi.util.join_path(ctx.config.dest_dir(), oldf.path) - if (os.path.isfile(fpath) or os.path.islink(fpath)) and os.path.exists(fpath) and pisi.util.sha1_file(fpath) == fileinfo.hash: + if (os.path.isfile(fpath) or os.path.islink(fpath) and not os.path.isdir(fpath)) and os.path.exists(fpath) and pisi.util.sha1_file(fpath) == fileinfo.hash: # old config file changed, don't overwrite config_changed.append(fpath) if os.path.exists(fpath + '.old'):