Lines 28-34
Link Here
|
28 |
from portage import dispatch_conf |
28 |
from portage import dispatch_conf |
29 |
from portage.process import find_binary |
29 |
from portage.process import find_binary |
30 |
|
30 |
|
31 |
FIND_EXTANT_CONFIGS = "find '%s' %s -iname '._cfg????_%s' ! -iname '.*~' ! -iname '.*.bak'" |
31 |
FIND_EXTANT_CONFIGS = "find '%s' %s -name '._cfg????_%s' ! -name '.*~' ! -iname '.*.bak' -print" |
32 |
DIFF_CONTENTS = "diff -Nu '%s' '%s'" |
32 |
DIFF_CONTENTS = "diff -Nu '%s' '%s'" |
33 |
DIFF_CVS_INTERP = "diff -Nu '%s' '%s' | grep '^[+-][^+-]' | grep -v '# .Header:.*'" |
33 |
DIFF_CVS_INTERP = "diff -Nu '%s' '%s' | grep '^[+-][^+-]' | grep -v '# .Header:.*'" |
34 |
DIFF_WSCOMMENTS = "diff -Nu '%s' '%s' | grep '^[+-][^+-]' | grep -v '^[-+]#' | grep -v '^[-+][:space:]*$'" |
34 |
DIFF_WSCOMMENTS = "diff -Nu '%s' '%s' | grep '^[+-][^+-]' | grep -v '^[-+]#' | grep -v '^[-+][:space:]*$'" |
Lines 93-103
Link Here
|
93 |
except OSError: |
93 |
except OSError: |
94 |
continue |
94 |
continue |
95 |
basename = "*" |
95 |
basename = "*" |
96 |
find_opts = "" |
96 |
find_opts = "-name '.*' -type d -prune -o" |
97 |
if not stat.S_ISDIR(mymode): |
97 |
if not stat.S_ISDIR(mymode): |
98 |
path, basename = os.path.split(path) |
98 |
path, basename = os.path.split(path) |
99 |
find_opts = "-maxdepth 1" |
99 |
find_opts = "-maxdepth 1" |
100 |
|
100 |
|
|
|
101 |
print FIND_EXTANT_CONFIGS % (path, find_opts, basename) |
101 |
confs += self.massage(os.popen(FIND_EXTANT_CONFIGS % (path, find_opts, basename)).readlines()) |
102 |
confs += self.massage(os.popen(FIND_EXTANT_CONFIGS % (path, find_opts, basename)).readlines()) |
102 |
|
103 |
|
103 |
if self.options['use-rcs'] == 'yes': |
104 |
if self.options['use-rcs'] == 'yes': |