From 1e7576a3018646fb07d464f538d2b630b304b687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Mon, 20 Jun 2005 12:32:48 +0000 Subject: [PATCH] =?UTF-8?q?dosyay=C4=B1=20silmeden=20=C3=B6nce=20var=20olu?= =?UTF-8?q?p=20olmad=C4=B1=C4=9F=C4=B1na=20bakmak=20laz=C4=B1md=C4=B1r.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/installdb.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pisi/installdb.py b/pisi/installdb.py index 71d47c07..2a43770a 100644 --- a/pisi/installdb.py +++ b/pisi/installdb.py @@ -58,7 +58,9 @@ def remove(pkg): def purge(pkg): if d.has_key(pkg): (status, version, release) = d[pkg] - os.unlink(files_name(pkg, version, release)) - del d[pkg] + f = files_name(pkg, version, release) + if util.check_file(f): + os.unlink(f) + del d[pkg]