|
|
from portage import dispatch_conf | from portage import dispatch_conf |
from portage.process import find_binary | from portage.process import find_binary |
| |
FIND_EXTANT_CONFIGS = "find '%s' %s -iname '._cfg????_%s' ! -iname '.*~' ! -iname '.*.bak'" |
FIND_EXTANT_CONFIGS = "find '%s' %s -name '._cfg????_%s' ! -name '.*~' ! -iname '.*.bak' -print" |
DIFF_CONTENTS = "diff -Nu '%s' '%s'" | DIFF_CONTENTS = "diff -Nu '%s' '%s'" |
DIFF_CVS_INTERP = "diff -Nu '%s' '%s' | grep '^[+-][^+-]' | grep -v '# .Header:.*'" | DIFF_CVS_INTERP = "diff -Nu '%s' '%s' | grep '^[+-][^+-]' | grep -v '# .Header:.*'" |
DIFF_WSCOMMENTS = "diff -Nu '%s' '%s' | grep '^[+-][^+-]' | grep -v '^[-+]#' | grep -v '^[-+][:space:]*$'" | DIFF_WSCOMMENTS = "diff -Nu '%s' '%s' | grep '^[+-][^+-]' | grep -v '^[-+]#' | grep -v '^[-+][:space:]*$'" |
|
|
except OSError: | except OSError: |
continue | continue |
basename = "*" | basename = "*" |
find_opts = "" |
find_opts = "-name '.*' -type d -prune -o" |
if not stat.S_ISDIR(mymode): | if not stat.S_ISDIR(mymode): |
path, basename = os.path.split(path) | path, basename = os.path.split(path) |
find_opts = "-maxdepth 1" | find_opts = "-maxdepth 1" |
| |
|
print FIND_EXTANT_CONFIGS % (path, find_opts, basename) |
confs += self.massage(os.popen(FIND_EXTANT_CONFIGS % (path, find_opts, basename)).readlines()) | confs += self.massage(os.popen(FIND_EXTANT_CONFIGS % (path, find_opts, basename)).readlines()) |
| |
if self.options['use-rcs'] == 'yes': | if self.options['use-rcs'] == 'yes': |