Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 29681 Details for
Bug 41093
'equery list' fails with missing ebuilds
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for equery (gentoolkit-0.2.0-pre8) to handle missing ebuild exceptions
equery.patch (text/plain), 1.39 KB, created by
Craig Lawson
on 2004-04-20 01:06:08 UTC
(
hide
)
Description:
Patch for equery (gentoolkit-0.2.0-pre8) to handle missing ebuild exceptions
Filename:
MIME Type:
Creator:
Craig Lawson
Created:
2004-04-20 01:06:08 UTC
Size:
1.39 KB
patch
obsolete
>--- equery 2004-04-20 00:51:31.285820076 -0700 >+++ equery.new 2004-04-20 00:51:41.902798437 -0700 >@@ -458,6 +458,7 @@ > > pkgtbl.append(cpv) > >+ try: > for x in pkg.get_runtime_deps(): > suffix = "" > cpv = x[2] >@@ -471,6 +472,14 @@ > if len(x[1]) and opts["displayUSEFlags"]: > suffix += " [ " + string.join(x[1]) + " ]" > pkgtbl = self._graph(pkg, opts, level+1, pkgtbl, suffix) >+ except KeyError: >+ # This package's ebuild file could not be found. Installed version could be too old. >+ # Portage module has already printed a warning. Add a message to clarify. >+ # It would be better in this case for Portage to not print the message. >+ indent = level + 1 >+ if opts["fancyFormatting"]: >+ indent = indent + 4 >+ print indent*" " + "(dependencies unknown -- ebuild missing)" > return pkgtbl > > def shortHelp(self): >@@ -819,7 +828,12 @@ > pkgmask = 0 > if pkg.is_masked(): > pkgmask = pkgmask + 3 >+ try: > keywords = pkg.get_env_var("KEYWORDS").split() >+ except KeyError: >+ # ebuild does not exist. >+ print (5+1+4+1)*" " + pkg.get_cpv() + " (unknown -- ebuild missing)" >+ continue > if "~"+gentoolkit.settings["ARCH"] in keywords: > pkgmask = pkgmask + 1 > elif "-*" in keywords or "-"+gentoolkit.settings["ARCH"] in keywords:
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 41093
: 29681 |
29777