Changeset - 031a698e85ea
[Not reviewed]
default
0 1 0
Marcin Kuzminski - 13 years ago 2013-02-08 22:11:23
marcin@python-works.com
Grafted from: f62d805544a4
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
 
@@ -88,13 +88,14 @@ class CleanupCommand(BasePasterCommand):
 

	
 
        repos_location = RhodeCodeUi.get_repos_location()
 
        to_remove = []
 
        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()
 
        older_than = self.options.older_than
 
        if older_than:
 
            to_remove_filtered = []
0 comments (0 inline, 0 general)