From 798400645c62928d987a32c6ab3f17a8c9e8a188 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Tue, 25 Aug 2009 08:55:40 +0000 Subject: [PATCH] either it is config file or not... remove empty dirs --- pisi/atomicoperations.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pisi/atomicoperations.py b/pisi/atomicoperations.py index 994712c9..a10c89f7 100644 --- a/pisi/atomicoperations.py +++ b/pisi/atomicoperations.py @@ -564,11 +564,11 @@ class Remove(AtomicOperation): ctx.ui.warning(_('Installed file %s does not exist on system [Probably you manually deleted]') % fpath) return - # remove emptied directories - dpath = os.path.dirname(fpath) - while dpath != '/' and not os.listdir(dpath): - os.rmdir(dpath) - dpath = os.path.dirname(dpath) + # remove emptied directories + dpath = os.path.dirname(fpath) + while dpath != '/' and not os.listdir(dpath): + os.rmdir(dpath) + dpath = os.path.dirname(dpath) def run_preremove(self): if ctx.comar: