[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

apt ignores -o DPkg::Options ?



Hmm...

Seems that apt-get ignores -o DPkg::Options.

nikita@zigzag:~> cat /tmp/xxx
#!/bin/sh
echo dpkg $*
exit 1

nikita@zigzag:~> LANG=C apt-get -o 'Dir::Bin::dpkg=/tmp/xxx' -o
'DPkg::Options={"--xxx";}' install nvi
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  nvi
0 packages upgraded, 1 newly installed, 0 to remove and 13 not upgraded.
Need to get 265kB of archives.
After unpacking 598kB of additional disk space will be used.
Get:1 http://zigzag.lvk.cs.msu.su stable/main nvi 1.79-20 [265kB]
Fetched 265kB in 0s (349kB/s)
dpkg --unpack /var/cache/apt/archives/nvi_1.79-20_i386.deb
E: Sub-process /tmp/xxx returned an error code (1)

So dpkg is called without any options from DPkg::Options ...

Should this be reported as a bug in apt, or I am doing something wrong?

P.S.
While exploring this issue, I looked at apt open bug list. I was surprised
how HUGE it is. Can't believe that apt, possibly the most important Debian
package, is poorly maintained...



Reply to: