Changeset - f62d805544a4
[Not reviewed]
beta
0 1 0
Marcin Kuzminski - 13 years ago 2013-02-08 22:11:23
marcin@python-works.com
fixes issue #756 cleanup repos didn't properly compose paths of repos to be cleaned up.
- it just worked on repos on root filesystem
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rhodecode/lib/cleanup.py
Show inline comments
 
@@ -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()
0 comments (0 inline, 0 general)