Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 193491 Details for
Bug 259337
app-portage/gentoolkit-0.2.4.2-r1 - epkginfo ignores all but the first herd listed
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Make epkginfo print all herds instead of only the last one and don't list herds as maintainers
gentoolkit-epkginfo-print-all-herds.patch (text/plain), 1.54 KB, created by
Sebastian Luther (few)
on 2009-06-04 11:12:50 UTC
(
hide
)
Description:
Make epkginfo print all herds instead of only the last one and don't list herds as maintainers
Filename:
MIME Type:
Creator:
Sebastian Luther (few)
Created:
2009-06-04 11:12:50 UTC
Size:
1.54 KB
patch
obsolete
>--- epkginfo 2009-06-04 13:08:09.000000000 +0200 >+++ epkginfo.new 2009-06-04 13:08:06.000000000 +0200 >@@ -74,7 +74,7 @@ > _inside_email="No" > _inside_longdescription="No" > >- _herd = "" >+ _herd = [] > _maintainers = [] > _longdescription = "" > >@@ -100,7 +100,7 @@ > > def characters(self, contents): > if self._inside_herd == "Yes": >- self._herd = contents >+ self._herd.append(contents) > > if self._inside_longdescription == "Yes": > self._longdescription = contents >@@ -110,7 +110,7 @@ > > > def check_metadata(full_package): >- """Checks that the primary maintainer is still an active dev and list the hed the package belongs to""" >+ """Checks that the primary maintainer is still an active dev and list the herd the package belongs to""" > metadata_file=portage.settings["PORTDIR"] + "/" + portage.pkgsplit(full_package)[0] + "/metadata.xml" > if not os.path.exists(metadata_file): > print darkgreen("Maintainer: ") + red("Error (Missing metadata.xml)") >@@ -125,11 +125,22 @@ > if len(handler._herd) < 1: > print darkgreen("Herd: ") + red("Error (No Herd)") > return 1 >- else: >- print darkgreen("Herd: ") + handler._herd >+ else: >+ herds = "" >+ first_run = True >+ for h in handler._herd: >+ if first_run: >+ first_run = False >+ else: >+ herds = herds + " " >+ >+ herds = herds + h >+ >+ print darkgreen("Herd: ") + herds >+ > > if len(handler._maintainers) < 1: >- print darkgreen("Maintainer: ") + handler._herd >+ print darkgreen("Maintainer: ") + "none" > else: > print darkgreen("Maintainer: ") + ", ".join(handler._maintainers) >
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 259337
: 193491 |
193493