Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 26450 Details for
Bug 43066
CONFIG_PROTECT during unmerge is redundant
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to ignore CONFIG_PROTECT when unmerging
portage-2.0.50-r1-unmerge.patch (text/plain), 1.67 KB, created by
Jason Stubbs (RETIRED)
on 2004-02-27 00:36:41 UTC
(
hide
)
Description:
Patch to ignore CONFIG_PROTECT when unmerging
Filename:
MIME Type:
Creator:
Jason Stubbs (RETIRED)
Created:
2004-02-27 00:36:41 UTC
Size:
1.67 KB
patch
obsolete
>--- portage.old/pym/portage.py 2004-02-24 21:41:29.000000000 +0900 >+++ portage/pym/portage.py 2004-02-27 17:18:27.575654608 +0900 >@@ -5277,21 +5277,20 @@ > #link target rather than the link itself. > print "--- !found "+str(pkgfiles[obj][0]), obj > continue >- # next line includes a tweak to protect modules from being unmerged, >- # but we don't protect modules from being overwritten if they are >- # upgraded. We effectively only want one half of the config protection >- # functionality for /lib/modules. For portage-ng both capabilities >- # should be able to be independently specified. >- if self.isprotected(obj) or ((len(obj) > len(modprotect)) and (obj[0:len(modprotect)]==modprotect)): >- print "--- cfgpro "+str(pkgfiles[obj][0]), obj >- continue >- > lstatobj=os.lstat(obj) > lmtime=str(lstatobj[ST_MTIME]) > if (pkgfiles[obj][0] not in ("dir","fif","dev","sym")) and (lmtime != pkgfiles[obj][1]): > print "--- !mtime", pkgfiles[obj][0], obj > continue > >+ # next line is a tweak to protect modules from being unmerged, but we >+ # don't protect modules from being overwritten if they are upgraded. >+ # For portage-ng both capabilities should be able to be independently >+ # specified. >+ if ((len(obj) > len(modprotect)) and (obj[0:len(modprotect)]==modprotect)): >+ print "--- cfgpro "+str(pkgfiles[obj][0]), obj >+ continue >+ > if pkgfiles[obj][0]=="dir": > if not os.path.isdir(obj): > print "--- !dir ","dir", obj >@@ -5313,6 +5312,7 @@ > if mymd5 != string.lower(pkgfiles[obj][2]): > print "--- !md5 ","obj", obj > continue >+ > try: > os.unlink(obj) > except (OSError,IOError),e:
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 43066
:
26449
| 26450