Setting "deleted_repo_lifetime" to 0 will tell kojira to keep repos indefinitely...
diff --git a/util/kojira b/util/kojira
index 19d08e7..93852d3 100755
--- a/util/kojira
+++ b/util/kojira
@@ -134,7 +134,7 @@ class ManagedRepo(object):
self.logger.error("Can't stat repo directory: %s" % path)
return True
age = time.time() - max(self.event_ts, mtime)
- if age < options.deleted_repo_lifetime:
+ if options.deleted_repo_lifetime == 0 or age < options.deleted_repo_lifetime:
#XXX should really be called expired_repo_lifetime
return False
self.logger.debug("Attempting to delete repo %s.." % self.repo_id)
@@ -252,7 +252,7 @@ class RepoManager(object):
continue
if rinfo['state'] in (koji.REPO_DELETED, koji.REPO_PROBLEM):
age = time.time() - max(rinfo['create_ts'], dir_ts)
- if age > options.deleted_repo_lifetime:
+ if options.deleted_repo_lifetime != 0 and age > options.deleted_repo_lifetime:
#XXX should really be called expired_repo_lifetime
count += 1
logger.info("Removing stray repo (state=%s): %s" % (koji.REPO_STATES[rinfo['state']], repodir))
--
---
Paul B Schroeder <paul.schroeder "at" bluecoat "dot" com>
Blue Coat Systems, Inc.