Re: dpkg --compare-versions
On Wed, Jun 02, 1999 at 02:46:44AM -0500, Michael Merten wrote:
> On Wed, Jun 02, 1999 at 10:30:41AM +1000, Craig Sanders wrote:
> > On Tue, Jun 01, 1999 at 06:28:36PM -0500, Michael Merten wrote:
> > > delete sharutils_1%3a4.2-10_i386.deb keep sharutils_4.2-9.deb
> >
> > > The line for sharutils seems to indicate that the newer version will
> > > be deleted. dpkg -s sharutils says I have version 1:4.2-10 installed,
> > > so it would seem to have worked right atleast once...
> >
> > looks like apt is saving the URL-encoded form of the filename.
> >
> > %3a is character 0x3a, or ":".
> >
> > i.e. "sharutils_1%3a4.2-10_i386.deb" is sharutils version 1:4.2-10
> >
> >
> > maybe you should convert it back by using sed in the pipeline:
> >
> > e.g.
> > v1= ... | sed -e 's/\%3a/:/g' | ....
> > v2= ... | sed -e 's/\%3a/:/g' | ....
> >
> > craig
> >
> Thanks... I knew I was missing something :)
>
> Mike
Sorry to reply to my own message, but I've run into another problem...
if I manually type the following:
dpkg --compare-versions sharutils_1:4.2.10_i386.deb lt \
sharutils_4.2.9.deb
(all on one line in actual usage) it produces the following error
message:
version a has bad syntax: epoch in version is not number
Any suggestions here?
Mike
--
Michael Merten ironfoot@popaccount.com NRA Life Member
---------------------------------------------------------------------
"The militia, who are in fact the effective part of the people at
large, will render many troops quite unnecessary. They will form a
powerful check upon the regular troops, and will generally be
sufficient to over-awe them." -- Tench Coxe -- An American Citizen,
Oct. 21, 1787
[NRA-ILA (www.nraila.org)]
Reply to: