Entropy/EntropyDatabaseInterface:

- do not crash on completely broken atom (USE deps)


git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2484 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
lxnay
2008-10-06 17:51:28 +00:00
parent 1b6e1c62da
commit e40be9ae26
+2 -4
View File
@@ -33132,8 +33132,7 @@ class EntropyDatabaseInterface:
scan_atom = self.entropyTools.remove_usedeps(atom)
if not scan_atom:
# completely broken atom
scan_atom = atom
atomUse = []
return -1,1
if (not matchUse) and (atomUse):
matchUse = atomUse
@@ -33164,8 +33163,7 @@ class EntropyDatabaseInterface:
# get version
data = self.entropyTools.catpkgsplit(strippedAtom)
if data == None:
return -1,1 # atom is badly formatted
if data == None: return -1,1 # atom is badly formatted
pkgversion = data[2]+"-"+data[3]
pkgkey = self.entropyTools.dep_getkey(strippedAtom)