abandon_stale: Allow weeks as an age parameter

Change-Id: I206a3b137fa5cf69f9b8a54541cf32c16a372d83
This commit is contained in:
David Pursehouse
2015-07-06 12:09:52 +09:00
parent 72efa1e56b
commit e766d2ca37

View File

@@ -101,7 +101,7 @@ def _main():
logging.error("Gerrit URL is required")
return 1
pattern = re.compile(r"^([\d]+)(months|years)")
pattern = re.compile(r"^([\d]+)(months|years|weeks)")
match = pattern.match(options.age)
if not match:
logging.error("Invalid age: %s", options.age)