cas-admin | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 95873f13f998893087555b5c0ea7ac731eebbd15
Author: adam stokes <ajs(a)redhat.com>
Date: Tue May 5 13:51:41 2009 -0400
purge code in alpha stage, initial testing proves positive
diff --git a/cas-admin b/cas-admin
index 3625e47..456390e 100755
--- a/cas-admin
+++ b/cas-admin
@@ -157,14 +157,14 @@ class PurgeHandler(object):
dirpath = os.path.join(root,d)
# pull out date from directory structure and trim it to
# (year, month, day)
- searchDate =
util.regexSearch('(\d+)\.(\d+)\.(\d+)\.(\d+)\.(\d+)\.(\d+)', dirpath)
+ searchDate =
self.util.regexSearch('(\d+)\.(\d+)\.(\d+)\.(\d+)\.(\d+)\.(\d+)', dirpath)
if searchDate:
self.casLog.debug('found %s' % (searchDate,))
(year, month, day) = searchDate.split('.')[:3]
# create our datetime object so we can do some arithmetic
dirDate = datetime.date(int(year), int(month), int(day))
self.casLog.debug(dirDate)
- if cutOffDate < dirDate:
+ if dirDate < cutOffDate:
self.casLog.debug('Should purge old directories, %s' %
(dirpath,))
rmtree(dirpath)
Show replies by date