[sulfur] do not raise ValueError but just return empty list when get_installed_pkg_objs_for_selected() is not allowed

This commit is contained in:
Fabio Erculiani
2010-01-20 21:56:01 +01:00
parent 3b5079ff21
commit fc392e471f
+2 -2
View File
@@ -1686,8 +1686,8 @@ class EntropyPackageView:
if m_tup[0] != -1:
ep, new = self.etpbase.get_package_item(m_tup)
if new:
raise ValueError("trying to load new package objects when" \
" shouldn't be allowed")
# trying to load new package objects when shouldn't be allowed
return []
selected_objs.append(ep)
return selected_objs