[Bug 1238616] Re: creating apt cache with rootdir= still considers global apt config

Julian Andres Klode juliank at ubuntu.com
Sat Mar 15 18:50:38 UTC 2014


We had that fixed for some time, but had to revert this now, because
code broke.

Anyway, you can get that behavior by clearing the config yourself,
before creating the cache object; something like:

 for key in apt_pkg.config:
  del apt_pkg.config[key]
apt_pkg.config["dir"] = rootdir

apt_pkg.init_config()

and then creating the cache using the rootdir argument.

** Changed in: python-apt (Ubuntu)
       Status: New => Confirmed

** Bug watch added: Debian Bug tracker #728274
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=728274

** Also affects: python-apt (Debian) via
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=728274
   Importance: Unknown
       Status: Unknown

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

Title:
  creating apt cache with rootdir= still considers global apt config

Status in “python-apt” package in Ubuntu:
  Confirmed
Status in “python-apt” package in Debian:
  Unknown

Bug description:
  I've tried to retrace a unity8 .crash from the phone on my desktop,
  using lp:daisy config, but the retrace process bails out after failing
  to download i386 and amd64 from ports.ubuntu.com. See the attached log
  for details.

  The command I used:

  ⟫ LANG=C apport-retrace -v -S daisy/retracer/config/ -C cache/ -o
  unity8.crash _usr_bin_unity8.32011.crash 2>&1 | tee retrace.log

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/1238616/+subscriptions



More information about the foundations-bugs mailing list