Commit f7e155ed authored by Arno Töll's avatar Arno Töll
Browse files

Cherry pick fix from df89b5b8

parent 33f54d68
...@@ -171,7 +171,7 @@ class CheckFiles(object): ...@@ -171,7 +171,7 @@ class CheckFiles(object):
if os.path.exists(file): if os.path.exists(file):
log.debug("Removing file '%s'" % (file)) log.debug("Removing file '%s'" % (file))
os.unlink(file) os.unlink(file)
if os.path.isdir(path): if os.path.isdir(path) and os.listdir(path) == []:
log.debug("Remove empty package repository '%s'" % (path)) log.debug("Remove empty package repository '%s'" % (path))
os.rmdir(path) os.rmdir(path)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment