projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a08fa34
)
Avoid "TypeError: unpack non-sequence" backtraces, and return a set of
author
Fabian Groffen
<grobian@gentoo.org>
Tue, 27 Feb 2007 19:35:27 +0000
(19:35 -0000)
committer
Fabian Groffen
<grobian@gentoo.org>
Tue, 27 Feb 2007 19:35:27 +0000
(19:35 -0000)
None, None when was asked for the location.
svn path=/main/branches/prefix/; revision=6093
pym/portage/__init__.py
patch
|
blob
|
history
diff --git
a/pym/portage/__init__.py
b/pym/portage/__init__.py
index 2c820bd4dd2c0f1f67d19acadb9f06656ce0dce4..e4aa7df1898780833fd91e4c878dccc96979f552 100644
(file)
--- a/
pym/portage/__init__.py
+++ b/
pym/portage/__init__.py
@@
-4475,7
+4475,10
@@
def getmaskingreason(mycpv, settings=None, portdb=None, return_location=False):
# Apparently this comment applies to muliple masks, so
# it remains valid until a blank line is encountered.
comment_valid += 1
- return None
+ if return_location:
+ return (None, None)
+ else:
+ return None
def getmaskingstatus(mycpv, settings=None, portdb=None):
if settings is None: