Mercurial > kallithea
changeset 3336:f62d805544a4 beta
fixes issue #756 cleanup repos didn't properly compose paths of repos to be cleaned up.
- it just worked on repos on root filesystem
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Fri, 08 Feb 2013 22:11:23 +0100 |
parents | 2d4e1f5e854e |
children | 4a99684543f7 |
files | rhodecode/lib/cleanup.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rhodecode/lib/cleanup.py Fri Feb 08 19:24:07 2013 +0100 +++ b/rhodecode/lib/cleanup.py Fri Feb 08 22:11:23 2013 +0100 @@ -91,7 +91,8 @@ 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()