tag 153305 + patch
thanks

I believe I have a fix for this bug.  I spent a while considering more
generalized solutions, including adding a field to the cmdinfo structure
for "pass this flag to backends", but decided against it for the reasons
noted in the comments.

This patch compiles and works as far as I can tell:

1253 {0} [EMAIL PROTECTED]:~/dpkg/bin$ dpkg --admindir=/lost+found --list 
>/dev/null && echo MIRACULOUS SUCCESS
MIRACULOUS SUCCESS
1254 {0} [EMAIL PROTECTED]:~/dpkg/bin$ ./dpkg --admindir=/lost+found --list 
>/dev/null && echo MIRACULOUS SUCCESS
dpkg-query: failed to open package info file `/lost+found/status' for reading: 
No such file or directory

Because of the setroot() function, --root works as well despite
dpkg-query not recognizing the option itself.

Patch attached.  It is also reviewable via Progeny's Subversion server:

svn diff -r 5334:5335 svn://svn.progeny.com/

Here's the commit message I used:

  Fix dpkg bug (Debian #153305) where dpkg would not pass an
  alternative admin directory to dpkg-query.

  Correct apparent typo in macro definition.

  Update and add some comments and whitespace for easier reading.

Please let me know if there is anything I can do to further improve this
patch.

-- 
Branden Robinson          | GPG signed/encrypted mail welcome
[EMAIL PROTECTED]       | 1024D/9C0BCBFB
Progeny Linux Systems     | D5F6 D4C9 E25B 3D37 068C
                          | 72E8 0F42 191A 9C0B CBFB


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to