--- a/dbrtools/dbr/checkenv.py Mon Mar 22 12:19:15 2010 +0000
+++ b/dbrtools/dbr/checkenv.py Mon Mar 22 12:28:48 2010 +0000
@@ -17,16 +17,19 @@
def run(args):
location = '/'
-#needs a fix to scanenv for this to work...
-# if(len(args)):
-# location = args[0]
+ filtertype = ''
+#using arg for filter...not for other env
+ if(len(args)):
+ filtertype = args[0]
db = dbrenv.CreateDB(location)
local = dbrenv.DBRLocalEnv(location)
results = db.compare(local)
local.verify(results.unknown)
results2 = db.compare(local)
- results2.printdetail()
- results2.printsummary()
+ filter = dbrenv.CreateFilter(filtertype)
+ filteredresults = filter.filter(results2)
+ filteredresults.printdetail()
+ filteredresults.printsummary()
db.update(local, results2.touched)
db.save()