summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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']