[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: dpkg --compare-versions



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

-- 
Michael Merten        ironfoot@popaccount.com         NRA Life Member
---------------------------------------------------------------------
South Carolina State Constitution: A well regulated militia being
necessary to the security of a free State, the right of the people to
keep and bear arms shall not be infringed. As, in times of peace,
armies are dangerous to liberty, they shall not be maintained without
the consent of the General Assembly. The military power of the State
shall always be held in subordination to the civil authority and be
governed by it. No soldier shall in time of peace be quartered in any
house without the consent of the owner nor in time of war but in the
manner prescribed by law. (Art. I, Sect. 20)
[NRA-ILA (www.nraila.org)]

--
This signature was automatically generated with Signify v1.05.
For this and other cool products, check out http://www.debian.org/.


Reply to: