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

pym/portage_dep.py

index a992992bfab086cb3bd22439a68698884c974012..b87058f7f10c2e7c1114e0f096259578906b3e04 100644 (file)
@@ -279,6 +279,8 @@ def get_operator(mydep):
        """
        if mydep:
                mydep = remove_slot(mydep)
+       if not mydep:
+               return None
        if mydep[0] == "~":
                operator = "~"
        elif mydep[0] == "=":