This is not an easy bug to reproduce as it requires a non-Ubuntu
installation to fully test the fix. However, testing for regressions in
Ubuntu is straightforward, you need simply start Software Center and
insure that the apt-xapian-index is updated without incident.

I have done this testing with the software-center version 5.2.1 in
precise-proposed and can verify that it causes no regressions.

Thanks!

** Tags removed: db verification-needed
** Tags added: verification-done

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to software-center in Ubuntu.
https://bugs.launchpad.net/bugs/808455

Title:
  Software-center causes update-apt-xapian-index to fail on downstream
  distros

Status in “software-center” package in Ubuntu:
  Fix Committed
Status in “software-center” source package in Precise:
  Fix Committed
Status in “software-center” source package in Quantal:
  Fix Committed

Bug description:
  When software-center is installed on an Ubuntu derivative (in our
  case, Nexradix), update-apt-xapian-index fails.

  When run, a python error indicating that "no module Nexradix is found"

  When I replace lines 112-114 in /usr/share/software-
  center/softwarecenter/distro/__init__.py with:

  distro_id = "Ubuntu"

  update-apt-xapian-index works without incident.

  Based on the prior code, it appears that the current distro name is
  being parsed from /etc/lsb-release, and if it doesn't find a matching
  distro in the "/usr/share/software-center/softwarecenter/distro"
  directory, it fails.

  I assume that adding the distro in question to that directory using
  Ubuntu.py as a template would likely solve this, however it remains a
  bug:  update-apt-xapian-index should not rely on software-center's
  distro-specific code, or at the very least, fail more gracefully with
  an error message or link to documentation as to what the fix is.

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to