# HG changeset patch # User Marcin Kuzminski # Date 2013-02-08 21:11:23 # Node ID 031a698e85ea70ba60ae7f4684d55ea9517592ef # Parent 06f77c3297b9e5a7406ca23c4cf85a4910eb9fb1 fixes issue #756 cleanup repos didn't properly compose paths of repos to be cleaned up. - it just worked on repos on root filesystem diff --git a/rhodecode/lib/cleanup.py b/rhodecode/lib/cleanup.py --- 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()