Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 237799 Details for
Bug 327207
emerge --info pkg should show repository information
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
emerge --info: Print repo names for packages not from 'gentoo'
0001-emerge-info-Print-repo-names-for-packages-not-from-g.patch (text/plain), 1.57 KB, created by
Sebastian Luther (few)
on 2010-07-06 21:15:02 UTC
(
hide
)
Description:
emerge --info: Print repo names for packages not from 'gentoo'
Filename:
MIME Type:
Creator:
Sebastian Luther (few)
Created:
2010-07-06 21:15:02 UTC
Size:
1.57 KB
patch
obsolete
>From 860f3f0d1e31438ddae226a5edb022ecf7114fee Mon Sep 17 00:00:00 2001 >From: Sebastian Luther <SebastianLuther@gmx.de> >Date: Tue, 6 Jul 2010 23:10:48 +0200 >Subject: [PATCH] emerge --info: Print repo names for packages not from 'gentoo' > >--- > pym/_emerge/actions.py | 27 ++++++++++++++++----------- > 1 files changed, 16 insertions(+), 11 deletions(-) > >diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py >index af4380e..e6c7781 100644 >--- a/pym/_emerge/actions.py >+++ b/pym/_emerge/actions.py >@@ -1262,18 +1262,23 @@ def action_info(settings, trees, myopts, myfiles): > > for x in myvars: > if portage.isvalidatom(x): >- pkg_matches = trees["/"]["vartree"].dbapi.match(x) >- pkg_matches = [portage.catpkgsplit(cpv)[1:] for cpv in pkg_matches] >- pkg_matches.sort(key=cmp_sort_key(portage.pkgcmp)) >- pkgs = [] >- for pn, ver, rev in pkg_matches: >- if rev != "r0": >- pkgs.append(ver + "-" + rev) >+ vardb = trees["/"]["vartree"].dbapi >+ pkg_matches = vardb.match(x) >+ >+ versions = [] >+ for cpv in pkg_matches: >+ ver = portage.versions.cpv_getversion(cpv) >+ repo = vardb.aux_get(cpv, ["repository"])[0] >+ if repo != "gentoo": >+ versions.append(ver + "::" + repo) > else: >- pkgs.append(ver) >- if pkgs: >- pkgs = ", ".join(pkgs) >- print("%-20s %s" % (x+":", pkgs)) >+ versions.append(ver) >+ >+ versions.sort(cmp=lambda a,b: portage.versions.vercmp(a.split("::")[0], b.split("::")[0])) >+ >+ if versions: >+ versions = ", ".join(versions) >+ print("%-20s %s" % (x+":", versions)) > else: > print("%-20s %s" % (x+":", "[NOT VALID]")) > >-- >1.7.1 >
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 327207
: 237799