On Sat, Apr 30, 2005 at 01:20:15AM +0200, Björn Heide wrote: > As long as libapt-pkg-perl lacks policy-support, you could do > "apt-get policy $pkg_name" or, if --target-release is used > "apt-cache -o APT::Default-Release=$target_release policy $pkg_name" > and take the version from the Candidate: line. > > It's an ugly hack, but I have no better idea.
Unfortunately, it doesn't seems to work. However, it should at least support preferences. % apt-cache policy -o APT::Default-Release=testing bash bash: Installed: 3.0-14 Candidate: 3.0-14 Version Table: *** 3.0-14 0 500 file: apt-build/main Packages 100 /var/lib/dpkg/status 3.0-14 0 500 ftp://ftp.dmz.naquadah.org unstable/main Packages 2.05b-26 0 990 ftp://ftp.dmz.naquadah.org testing/main Packages -- Julien Danjou .''`. Debian Developer : :' : http://julien.danjou.info `. `' http://people.debian.org/~acid `- 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD
signature.asc
Description: Digital signature