sandbox: __AptDpkgPackageInfo.get_distro_name() returns host distro name

Bug #1684690 reported by Benjamin Drung
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Apport
Confirmed
Low
Unassigned

Bug Description

make_sandbox() calls apport.packaging.install_packages() several times. install_packages() tries to install the specified packages, but will fall back to query Launchpad if the package version is not found:

try:
    if ver:
        cache_pkg.candidate = cache_pkg.versions[ver]
except KeyError:
    (lp_url, sha1sum) = self.get_lp_binary_package(self.get_distro_name(),
                                                   pkg, ver, architecture)

The problem is that get_distro_name() returns the host distro name instead of the distro name of the sandbox.

Revision history for this message
Brian Murray (brian-murray) wrote :

I think we'd want to read the report's 'DistroRelease' field.

Changed in apport:
status: New → Confirmed
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.