Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 97009 Details for
Bug 14321
CONFIG_PROTECT_FILES & CONFIG_PROTECT_FILES_MASK
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
dispatch-conf support for individual files
dispatch-conf.patch (text/plain), 1.58 KB, created by
Zac Medico
on 2006-09-14 15:01:54 UTC
(
hide
)
Description:
dispatch-conf support for individual files
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2006-09-14 15:01:54 UTC
Size:
1.58 KB
patch
obsolete
>diff --git a/bin/dispatch-conf b/bin/dispatch-conf >index d6e6216..06b0591 100755 >--- a/bin/dispatch-conf >+++ b/bin/dispatch-conf >@@ -14,13 +14,13 @@ # > > from stat import * > from random import * >-import os, shutil, sys, string, re, commands, atexit >+import os, shutil, stat, string, sys, re, commands, atexit > sys.path = ["/usr/lib/portage/pym"]+sys.path > > import portage, dispatch_conf > from portage_exec import find_binary > >-FIND_EXTANT_CONFIGS = "find %s/ -iname '._cfg????_*' | sed -e 's://:/:g'" >+FIND_EXTANT_CONFIGS = "find '%s' %s -name '._cfg????_%s'" > DIFF_CONTENTS = 'diff -Nu %s %s' > DIFF_CVS_INTERP = 'diff -Nu %s %s | grep "^[+-][^+-]" | grep -v "# .Header:.*"' > DIFF_WSCOMMENTS = 'diff -Nu %s %s | grep "^[+-][^+-]" | grep -v "^[-+]#" | grep -v "^[-+][:space:]*$"' >@@ -79,10 +79,18 @@ class dispatch: > # > > for path in config_paths.split (): >- if not os.path.exists (path): >+ path = portage.normalize_path(path) >+ try: >+ mymode = os.lstat(path).st_mode >+ except OSError: > continue >+ basename = "*" >+ find_opts = "" >+ if not stat.S_ISDIR(mymode): >+ path, basename = os.path.split(path) >+ find_opts = "-maxdepth 1" > >- confs += self.massage (os.popen (FIND_EXTANT_CONFIGS % (path,)).readlines ()) >+ confs += self.massage(os.popen(FIND_EXTANT_CONFIGS % (path, find_opts, basename)).readlines()) > > if self.options['use-rcs'] == 'yes': > for rcs_util in ("rcs", "ci", "co", "rcsmerge"):
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 14321
:
25352
|
96837
|
96850
|
96915
|
97005
| 97009