summaryrefslogtreecommitdiff
path: root/unperish
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2011-06-19 18:21:40 +0100
committerLars Wirzenius <liw@liw.fi>2011-06-19 18:21:40 +0100
commitf02293368a3762935631ea38df96ab7fafe74052 (patch)
tree59e935e648537f1c255f3adbf19775eea63b1bd0 /unperish
parentda61854c773fcbd19d075ddfa5579166425be61c (diff)
downloadunperish-f02293368a3762935631ea38df96ab7fafe74052.tar.gz
Fix cmd_clean so it works if build-area != '.'.
Diffstat (limited to 'unperish')
-rwxr-xr-xunperish6
1 files changed, 3 insertions, 3 deletions
diff --git a/unperish b/unperish
index 5bf529d..c6345d2 100755
--- a/unperish
+++ b/unperish
@@ -178,10 +178,10 @@ class Unperish(cliapp.Application):
if os.path.isdir(area):
for x in os.listdir(area):
pathname = os.path.join(area, x)
- if os.path.isdir(x):
- shutil.rmtree(x)
+ if os.path.isdir(pathname):
+ shutil.rmtree(pathname)
else:
- os.remove(x)
+ os.remove(pathname)
def add_debian_changelog_entry(self):
target = self.settings['upload-target']