Re: dpkg --compare-versions
On Wed, Jun 02, 1999 at 01:45:47PM +0300, Antti-Juhani Kaijanaho wrote:
> On Wed, Jun 02, 1999 at 03:37:52AM -0500, Michael Merten wrote:
> > dpkg --compare-versions sharutils_1:4.2.10_i386.deb lt \
> > sharutils_4.2.9.deb
>
> Wrong syntax.
>
> dpkg --compare-versions 1:4.2.10 lt 4.2.9
>
> is correct. --compare-versions compares versions, not file names.
>
> --
> %%% Antti-Juhani Kaijanaho % gaia@iki.fi % http://www.iki.fi/gaia/ %%%
>
> "... memory leaks are quite acceptable in many applications ..."
> (Bjarne Stroustrup, The Design and Evolution of C++, page 220)
>
Ok, I modified my script to trim the package name from the version
and use the result when calling dpkg and it seems to work like I
wanted it to. Thanks!
Mike
--
Michael Merten ironfoot@popaccount.com NRA Life Member
---------------------------------------------------------------------
"Get your facts first, and then you can distort them as much as you
please." --Mark Twain
[The Federalist (www.Federalist.com)]
--
This signature was automatically generated with Signify v1.05.
For this and other cool products, check out http://www.debian.org/.
Reply to: