> Hi, > > We can search for this directory during the configure process > I added a test about it. > If there a way to get this directory via dpkg directly, we should use > it, but a fast dpkg --help dont give much help. >
Well, your test in configure seems to me the best way to solve this issue. After looking at the dpkg man page and doing some tests, it seems like "--root" and "--admindir" are options that must be passed each time you call dpkg (or must be given in a default options configuration file). For instance, if you want to install and register the package "pdbv" under the "/strange" hierarchy, you use that options. However, the default directory is always /var/lib/dpkg. I think that asking the user to type the directory is the best way to allow pdbv to be used in systems in which there is no /var/lib/dpkg (I wonder if there is such system). > Regards, > -- > Mathieu Roy > http://savannah.gnu.org/users/yeupou > http://yeupou.coleumes.org > http://gpg.coleumes.org (GPG Key) Bye!
