Show More
@@ -88,9 +88,10 b' class CleanupCommand(BasePasterCommand):' | |||||
88 |
|
88 | |||
89 | repos_location = RhodeCodeUi.get_repos_location() |
|
89 | repos_location = RhodeCodeUi.get_repos_location() | |
90 | to_remove = [] |
|
90 | to_remove = [] | |
91 |
for |
|
91 | for dn, dirs, f in os.walk(str(repos_location)): | |
92 | if REMOVED_REPO_PAT.match(loc): |
|
92 | for loc in dirs: | |
93 | to_remove.append([loc, self._extract_date(loc)]) |
|
93 | if REMOVED_REPO_PAT.match(loc): | |
|
94 | to_remove.append([loc, self._extract_date(loc)]) | |||
94 |
|
95 | |||
95 | #filter older than (if present)! |
|
96 | #filter older than (if present)! | |
96 | now = datetime.datetime.now() |
|
97 | now = datetime.datetime.now() |
General Comments 0
You need to be logged in to leave comments.
Login now