In order to fix this bug the code in ui/gtk3/views/catview_gtk.py for 
_append_banner_ads() needs to become
smarter. 

The current code will simply do a "exhibits_banner.set_exhibits(l)" when the 
exhibits are comming
back from the exhibits API call. It should instead have a method that first 
goes over the existing exhibits and
checks if the given packagename is availalbe in the xapian database, e.g. by 
checking if:
  Application("", pkgname).get_details(self.db)
works and does not raise a ValueError.

Alternatively we could pass a "db" reference to the scagent and let the agent 
filter the non-existing apps out
(not not yet existing ones). The agent would also need to connect to the db 
"reopen" signal to ensure that its
emiting the exibits signal again when new information from the 
software-center-agent comes in so that the
banners can get updated.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/986563

Title:
  Clicking banner about "The Definitive Guides to Ubuntu" in precise
  doesn't work on fresh install

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/986563/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to