diff --git a/pisi/installdb.py b/pisi/installdb.py index 33561aa4..be777c53 100644 --- a/pisi/installdb.py +++ b/pisi/installdb.py @@ -58,8 +58,7 @@ def purge(pkg): if d.has_key(pkg): (status, version, release) = d[pkg] f = files_name(pkg, version, release) - if util.check_file(f): - os.unlink(f) - del d[pkg] - + if util.check_file(f): + os.unlink(f) + del d[pkg]