Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 281123 Details for
Bug 376577
sys-apps/portage-2.2.0_alpha39 to alpha47 fail with InvalidDependString on @world -epv
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
a minimal fix, for debugging
debug.patch (text/plain), 1.45 KB, created by
Zac Medico
on 2011-07-27 10:36:54 UTC
(
hide
)
Description:
a minimal fix, for debugging
Filename:
MIME Type:
Creator:
Zac Medico
Created:
2011-07-27 10:36:54 UTC
Size:
1.45 KB
patch
obsolete
>From 7bc0f420943278f3efcbb2e33c949c393ab99a09 Mon Sep 17 00:00:00 2001 >From: Zac Medico <zmedico@gentoo.org> >Date: Wed, 27 Jul 2011 03:34:09 -0700 >Subject: [PATCH] depgraph: handle invalid SRC_URI > >This is a minimal fix for bug #376577. >--- > pym/_emerge/resolver/output.py | 9 +++++++-- > 1 files changed, 7 insertions(+), 2 deletions(-) > >diff --git a/pym/_emerge/resolver/output.py b/pym/_emerge/resolver/output.py >index 69a30cc..05e316a 100644 >--- a/pym/_emerge/resolver/output.py >+++ b/pym/_emerge/resolver/output.py >@@ -26,6 +26,7 @@ from _emerge.Blocker import Blocker > from _emerge.create_world_atom import create_world_atom > from _emerge.resolver.output_helpers import ( _DisplayConfig, _tree_display, > _PackageCounters, _create_use_string, _format_size, _calc_changelog, PkgInfo) >+from _emerge.show_invalid_depstring_notice import show_invalid_depstring_notice > > if sys.hexversion >= 0x3000000: > basestring = str >@@ -312,8 +313,12 @@ class Display(object): > try: > myfilesdict = self.portdb.getfetchsizes(pkg.cpv, > useflags=pkg_info.use, myrepo=pkg.repo) >- except InvalidDependString: >- # should have been masked before it was selected >+ except InvalidDependString as e: >+ # FIXME: validate SRC_URI earlier >+ depstr, = self.portdb.aux_get(pkg.cpv, >+ ["SRC_URI"], myrepo=pkg.repo) >+ show_invalid_depstring_notice( >+ pkg, depstr, str(e)) > raise > if myfilesdict is None: > myfilesdict = "[empty/missing/bad digest]" >-- >1.7.6 >
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 376577
: 281123