Fix gentoolkit.split_package_name to work with newer portage.catpkgsplit that now...
authorfuzzyray <fuzzyray@gentoo.org>
Tue, 22 Jul 2008 18:29:31 +0000 (18:29 -0000)
committerfuzzyray <fuzzyray@gentoo.org>
Tue, 22 Jul 2008 18:29:31 +0000 (18:29 -0000)
svn path=/; revision=501

trunk/ChangeLog
trunk/src/gentoolkit/helpers.py

index e0caae9cbe537265732991b19f1c8df8097c2461..5e3cb9f11c96d4b32d77e121e7789ff63d1c9576 100644 (file)
@@ -1,3 +1,8 @@
+2008-07-22: Paul Varner <fuzzyray@gentoo.org>
+       * gentoolkit: Fix gentoolkit.split_package_name to work with
+       newer portage.catpkgsplit that now returns a tuple instead of a
+       list. (Bug 232599)
+
 2008-07-21: Paul Varner <fuzzyray@gentoo.org>
        * revdep-rebuild: Fix filtering of masked paths from SEARCH_DIRS
        variable. (Bug 232270)
index 2680fef35c968cfe0a90c14f7a59359dbcdd4bcd..595bee3a7b258c4ebbcbbf7c067366454e2c8350 100644 (file)
@@ -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: