← Back to team overview

desktop-packages team mailing list archive

[Bug 808455] Re: Software-center causes update-apt-xapian-index to fail on downstream distros

 

** Tags added: db

-- 
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:
  New

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