pbuilder-dist overrides APTCACHE setting from ~/.pbuilderrc

Bug #956903 reported by Daniel Hahler
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-dev-tools (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

I am using "APTCACHE=" in ~/.pbuilderrc (because I am using a systemwide apt-cacher-ng).

pbuilder-dist overrides this setting:
    arguments = [
        [...]
        '--aptcache', '/var/cache/apt/archives/',
        '--override-config',

Using os.environ.get('APTCACHE', '/var/cache/apt/archives/') does not appear to help here, because ~/.pbuilderrc gets sourced only after building the command.
(Makes me wonder why the other os.environ.get calls are there?!)

I think pbuilder-dist should just not force this setting to be the default.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: ubuntu-dev-tools 0.139
ProcVersionSignature: Ubuntu 3.2.0-18.29-generic-pae 3.2.9
Uname: Linux 3.2.0-18-generic-pae i686
ApportVersion: 1.94.1-0ubuntu2
Architecture: i386
Date: Fri Mar 16 13:07:04 2012
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Release i386 (20110427.1)
PackageArchitecture: all
SourcePackage: ubuntu-dev-tools
UpgradeStatus: Upgraded to precise on 2011-12-16 (91 days ago)

Revision history for this message
Daniel Hahler (blueyed) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

Committed to bzr, thanks!

Changed in ubuntu-dev-tools (Ubuntu):
status: New → Fix Committed
Changed in ubuntu-dev-tools (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-dev-tools - 0.140

---------------
ubuntu-dev-tools (0.140) unstable; urgency=low

  [ Stefano Rivera ]
  * Bump Standards-Version to 3.9.3, no changes needed.
  * Update machine-readable copyright Format to 1.0.
  * pbuilder-dist: Use the same chroot, whether the system-architecture was
    the supplied architecture or was chosen by default (LP: #943435)
  * backportpackage
    - Prompt to delete existing workdirs (LP: #885514)
    - Support a BACKPORTPACKAGE_UPLOAD configuration/enviornment variable
      (LP: #693217)
  * requestsync:
    - New packages from non-free or contrib go into multiverse (LP: #935643)
    - Catch SeriesNotFoundException and display a friendly error (LP: #963888)

  [ Daniel Hahler ]
  * ubuntutools/archive.py: use ProxyHandler in _download_file.
    This makes use of the system proxy (e.g. http_proxy).
  * pbuilder-dist: Do not force default value for `--aptcache` argument
    (LP: #956903)

  [ John S Gruber ]
  * Don't use --override-config with operations other than update.
    (LP: #409696)

 -- Stefano Rivera <email address hidden> Thu, 29 Mar 2012 00:01:40 +0200

Changed in ubuntu-dev-tools (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Nobuto Murata (nobuto) wrote :

As APTCACHE is overwritten by pbuilder-dist again, I made another report as Bug #1309366.

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.