aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2013-02-08 22:11:23 +0100
committerMarcin Kuzminski <marcin@python-works.com>2013-02-08 22:11:23 +0100
commitb6fe809cd4db932539ce46147f2d95c0dac13b61 (patch)
treef0d17508761c43a863032e50ea2f51be0fc9e11d
parent51b2664233404b5b7ffdc9060923c3ed63f58bf1 (diff)
fixes issue #756 cleanup repos didn't properly compose paths of repos to be cleaned up.
- it just worked on repos on root filesystem --HG-- extra : source : f62d805544a4cc8712d987aa4de00be741351ae1
-rw-r--r--rhodecode/lib/cleanup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rhodecode/lib/cleanup.py b/rhodecode/lib/cleanup.py
index d4572c58..0c59da58 100644
--- a/rhodecode/lib/cleanup.py
+++ b/rhodecode/lib/cleanup.py
@@ -91,7 +91,8 @@ class CleanupCommand(BasePasterCommand):
for dn, dirs, f in os.walk(safe_str(repos_location)):
for loc in dirs:
if REMOVED_REPO_PAT.match(loc):
- to_remove.append([loc, self._extract_date(loc)])
+ to_remove.append([os.path.join(dn, loc),
+ self._extract_date(loc)])
#filter older than (if present)!
now = datetime.datetime.now()