diff options
author | Lars Wirzenius <liw@liw.fi> | 2011-06-19 18:21:40 +0100 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2011-06-19 18:21:40 +0100 |
commit | f02293368a3762935631ea38df96ab7fafe74052 (patch) | |
tree | 59e935e648537f1c255f3adbf19775eea63b1bd0 /unperish | |
parent | da61854c773fcbd19d075ddfa5579166425be61c (diff) | |
download | unperish-f02293368a3762935631ea38df96ab7fafe74052.tar.gz |
Fix cmd_clean so it works if build-area != '.'.
Diffstat (limited to 'unperish')
-rwxr-xr-x | unperish | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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'] |