# HG changeset patch # User MattD # Date 1269273051 0 # Node ID 6272bdcb62218ba8551a0120870a739a84e5624a # Parent 21d5b62bbd8ec2c458ef496991cf71e067935e16 DBRTools - minor nasty hack to get cleanenv working better diff -r 21d5b62bbd8e -r 6272bdcb6221 dbrtools/dbr/cleanenv.py --- a/dbrtools/dbr/cleanenv.py Mon Mar 22 12:28:48 2010 +0000 +++ b/dbrtools/dbr/cleanenv.py Mon Mar 22 15:50:51 2010 +0000 @@ -18,6 +18,7 @@ import dbrenv import re #temporary for dealing with patches +import os def run(args): zippath = '/' @@ -40,7 +41,9 @@ required = results2.changed | results2.removed dbrutils.extractfiles(required, zippath) #do something about the patches here... - print 'Need to extract the patches!!!' + print 'Need to extract the patches in a nicer manner!!!' + dbrutils.extractfiles(required, os.path.join(location,dbrutils.patch_path_internal())) + #scan again...create a new 'local' local = dbrenv.DBRLocalEnv(location) local.verify(required)