From 7e6bc349442803215250a5806d07546a757cdc4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Fri, 30 Sep 2005 13:10:17 +0000 Subject: [PATCH] also remove symlinks... --- pisi/operations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pisi/operations.py b/pisi/operations.py index e0af44c1..b5f9dc03 100644 --- a/pisi/operations.py +++ b/pisi/operations.py @@ -57,7 +57,7 @@ def remove_single(package_name): # check if file is removed manually. # And we don't remove directories! # FIXME: should give a warning if it is... - if os.path.isfile(fpath): + if os.path.isfile(fpath) or os.path.islink(fpath): os.unlink(fpath)