gdebi --root doesn't use the apt config from the chroot but the one from the "host"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-apt (Ubuntu) |
Fix Released
|
Medium
|
Michael Vogt |
Bug Description
Binary package hint: gdebi
I was looking why pbuilder-
It turned out that it was because gdebi is called from outside the pbuilder chroot and only give the path to it (--root) but it didn't took the apt config from the chroot but the one from outside. After setting up apt (in the base system) to not install recommends to, gdebi didn't listed them anymore.
From outside the pbuilder (before configuring apt to not install recommends in the base system):
$ gdebi --quiet --root /var/cache/
libdigest-sha1-perl debhelper curl bsdmainutils libio-compress-
From inside the pbuilder:
# gdebi --quiet --apt-line libgnupg-
debhelper bsdmainutils gettext libmagic1 file libclass-
From outside the pbuilder (after configuring apt to not install recommends in the base system):
$ gdebi --quiet --root /var/cache/
debhelper bsdmainutils gettext libmagic1 file libclass-
Related branches
Changed in gdebi: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in python-apt: | |
status: | Fix Released → Triaged |
Thanks for your bugreport.
If you have a test environment, could you please test the following patch against python-apt?
=== modified file 'apt/cache.py'
apt_ pkg.Config. Set("Dir" , rootdir)
apt_ pkg.Config. Set("Dir: :State: :status" ,
rootdir + "/var/lib/ dpkg/status" ) InitConfig( )
self. open(progress)
--- apt/cache.py 2009-01-12 17:28:18 +0000
+++ apt/cache.py 2009-01-23 08:55:54 +0000
@@ -55,6 +55,7 @@
+ apt_pkg.
def _runCallbacks(self, name):
I'm pretty sure thats the issue