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

Bug#307715: dpkg: -l ignores --root, --admindir



Package: dpkg
Version: 1.10.27
Severity: normal

Even though we use --root, --admindir, they are ignored with -l:
$ cd ~/homebrew
$ dpkg --root=. -l|wc
   1693   14722  121212
$ find . -amin -1 -type f
$ dpkg --admindir=./var/lib/dpkg/ -l|wc
   1693   14722  121212
$ find . -amin -1 -type f
$ find . /var/lib/dpkg/  -amin -1 -type f
/var/lib/dpkg/status
/var/lib/dpkg/available
#true, my home brew available file is empty,
$ ls -og var/lib/dpkg
-rw-r--r--  1       0 2005-05-04 09:52 available
-rw-r--r--  1       0 2005-05-03 05:40 available-old
-rw-r-----  1       0 2005-05-04 09:52 lock
-rw-r--r--  1  414885 2005-05-04 09:52 status
-rw-r--r--  1 1458835 2005-05-04 09:52 status-old
drwxr-xr-x  2    4096 2005-05-04 09:52 updates
#but we see that even the directories aren't apparently tried:
$ dpkg --root=. -l|wc
   1693   14722  121212
$ find . /var/lib/dpkg/  -amin -1
/var/lib/dpkg/updates
/var/lib/dpkg/status
/var/lib/dpkg/available



Reply to: