Fix an IndexError in get_operator() that occurs when isvalidatom() passes it an empty...
authorZac Medico <zmedico@gentoo.org>
Wed, 30 May 2007 23:31:14 +0000 (23:31 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 30 May 2007 23:31:14 +0000 (23:31 -0000)
svn path=/main/trunk/; revision=6680

pym/portage/dep.py

index 9717e69d1122b33e1445f76c9e63d552080e2749..445d804e00c09d1ba5eae4e767197bdd010fac54 100644 (file)
@@ -335,6 +335,8 @@ def get_operator(mydep):
        """
        if mydep:
                mydep = remove_slot(mydep)
+       if not mydep:
+               return None
        if mydep[0] == "~":
                operator = "~"
        elif mydep[0] == "=":