avoid reading of non-existant licenses

git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@1426 cd1c1023-2f26-0410-ae45-c471fc1f0318
This commit is contained in:
(no author)
2008-03-07 19:52:02 +00:00
parent 8a5dbe53fb
commit e90839bc4e
+2
View File
@@ -495,6 +495,8 @@ class LicenseDialog:
model, iterator = self.view.get_selection().get_selected()
if model != None and iterator != None:
license_identifier = model.get_value( iterator, 0 )
if not self.licenses.has_key(license_identifier): # for security reasons
return
packages = self.licenses[license_identifier]
license_text = ''
found = False