diff options
| author | fuzzyray <fuzzyray@gentoo.org> | 2008-07-22 18:29:31 +0000 |
|---|---|---|
| committer | fuzzyray <fuzzyray@gentoo.org> | 2008-07-22 18:29:31 +0000 |
| commit | 997d74b44ab2808c493459054d0a636cfc26cd0b (patch) | |
| tree | f1b6603ec2fe0aab901a6026792299662e0b52a5 /trunk/src | |
| parent | 90abb3591deceb8bd789a3d6bab945ea2b3b945e (diff) | |
| download | gentoolkit-997d74b44ab2808c493459054d0a636cfc26cd0b.tar.gz | |
Fix gentoolkit.split_package_name to work with newer portage.catpkgsplit that now returns a tuple instead of a list. (Bug 232599)
svn path=/; revision=501
Diffstat (limited to 'trunk/src')
| -rw-r--r-- | trunk/src/gentoolkit/helpers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trunk/src/gentoolkit/helpers.py b/trunk/src/gentoolkit/helpers.py index 2680fef..595bee3 100644 --- a/trunk/src/gentoolkit/helpers.py +++ b/trunk/src/gentoolkit/helpers.py @@ -130,7 +130,7 @@ 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 = portage.catpkgsplit(name) + r = list(portage.catpkgsplit(name)) if not r: r = name.split("/") if len(r) == 1: |
