Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 125543 Details for
Bug 169500
re-adding an ebuild that's in the Attic causes repoman to generate a broken Manifest
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
automatically detect "/Attic/" in the $Header path and correct it
attic.patch (text/plain), 1.01 KB, created by
Zac Medico
on 2007-07-21 11:40:54 UTC
(
hide
)
Description:
automatically detect "/Attic/" in the $Header path and correct it
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2007-07-21 11:40:54 UTC
Size:
1.01 KB
patch
obsolete
>Index: bin/repoman >=================================================================== >--- bin/repoman (revision 7340) >+++ bin/repoman (revision 7341) >@@ -1790,6 +1790,23 @@ > else: > raise portage_exception.PortageException("!!! gpg exited with '" + str(rValue) + "' status") > >+ # When files are removed and re-added, the cvs server will put /Attic/ >+ # inside the $Header path. This code detects the problem and corrects it >+ # so that the Manifest will generate correctly. See bug #169500. >+ from portage_util import write_atomic >+ cvs_header = re.compile(r'^#\s*\$Header.*\$$') >+ for x in myheaders: >+ f = open(x) >+ mylines = f.readlines() >+ f.close() >+ modified = False >+ for i, line in enumerate(mylines): >+ if cvs_header.match(line) and "/Attic/" in line: >+ mylines[i] = line.replace("/Attic/", "/") >+ modified = True >+ if modified: >+ write_atomic(x, "".join(mylines)) >+ > manifest_commit_required = True > if myheaders or myupdates or myremoved or mynew: > myfiles=myheaders+myupdates+myremoved+mynew
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 169500
: 125543