Package: dpkg Version: 1.10.25 Query options of dpkg (-s, -S, -l, -L etc...) ignore the --root=... or --admindir=... command line options, they perform the query outside the chroot, using the database under /var/lib/dpkg.
However, calling dpkg-query directly honors the --admindir option and correctly uses the database specified there. On the other hand, it doesn't know about the --root option. And dpkg doesn't pass these options to dpkg-query. -- Egmont

