Message ID | 87ip9rf16m.fsf@arh128.prevas.dk |
---|---|
State | Accepted |
Headers | show |
diff --git a/lib/oelite/task.py b/lib/oelite/task.py index 5dac890..0db4303 100644 --- a/lib/oelite/task.py +++ b/lib/oelite/task.py @@ -266,7 +266,10 @@ class OEliteTask: continue try: #print "cleandir %s"%(cleandir) - shutil.rmtree(cleandir) + if os.path.islink(cleandir): + os.unlink(cleandir) + else: + shutil.rmtree(cleandir) except Exception, e: err("cleandir %s failed: %s"%(cleandir, e)) raise