Entropy/Database Interface:
- make retrieveLicense() and retrieveLicensedata() more fault tolerant git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2042 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
@@ -21206,6 +21206,8 @@ class EntropyDatabaseInterface:
|
||||
if not self.doesTableExist("licensedata"):
|
||||
return {}
|
||||
licenses = self.retrieveLicense(idpackage)
|
||||
if licenses == None:
|
||||
return {}
|
||||
licenses = licenses.split()
|
||||
licdata = {}
|
||||
for licname in licenses:
|
||||
@@ -21227,6 +21229,8 @@ class EntropyDatabaseInterface:
|
||||
if not self.doesTableExist("licensedata"):
|
||||
return set()
|
||||
licenses = self.retrieveLicense(idpackage)
|
||||
if licenses == None:
|
||||
return set()
|
||||
licenses = licenses.split()
|
||||
licdata = set()
|
||||
for licname in licenses:
|
||||
|
||||
Reference in New Issue
Block a user