projects
/
gentoolkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efd5f95
)
Fix gentoolkit.split_package_name to work when portage.catpkgsplit returns None
author
fuzzyray
<fuzzyray@gentoo.org>
Fri, 22 Aug 2008 21:14:36 +0000
(21:14 -0000)
committer
fuzzyray
<fuzzyray@gentoo.org>
Fri, 22 Aug 2008 21:14:36 +0000
(21:14 -0000)
svn path=/; revision=506
trunk/src/gentoolkit/helpers.py
patch
|
blob
|
history
diff --git
a/trunk/src/gentoolkit/helpers.py
b/trunk/src/gentoolkit/helpers.py
index 595bee3a7b258c4ebbcbbf7c067366454e2c8350..6dba7db7c484acb14a88917f4fa0492ef4556fe8 100644
(file)
--- a/
trunk/src/gentoolkit/helpers.py
+++ b/
trunk/src/gentoolkit/helpers.py
@@
-130,13
+130,15
@@
def split_package_name(name):
"""Returns a list on the form [category, name, version, revision]. Revision will
be 'r0' if none can be inferred. Category and version will be empty, if none can
be inferred."""
- r =
list(portage.catpkgsplit(name)
)
+ r =
portage.catpkgsplit(name
)
if not r:
r = name.split("/")
if len(r) == 1:
return ["", name, "", "r0"]
else:
return r + ["", "r0"]
+ else:
+ r = list(r)
if r[0] == 'null':
r[0] = ''
return r