[26573] in Source-Commits

home help back first fref pref prev next nref lref last post

Re: /svn/athena r25625 - trunk/athena/lib/firefox-extension/debian

daemon@ATHENA.MIT.EDU (Jonathan Reed)
Tue Jul 10 10:57:27 2012

Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset=us-ascii
From: Jonathan Reed <jdreed@MIT.EDU>
In-Reply-To: <alpine.GSO.1.10.1207101047080.18441@multics.mit.edu>
Date: Tue, 10 Jul 2012 10:57:25 -0400
Cc: source-commits@MIT.EDU
Message-Id: <D3F64F60-ECA6-46D1-ABD6-2B04E4A7FBE5@MIT.EDU>
To: Benjamin Kaduk <kaduk@MIT.EDU>
Content-Transfer-Encoding: 8bit


On Jul 10, 2012, at 10:50 AM, Benjamin Kaduk wrote:

> On Tue, 10 Jul 2012, Jonathan Reed wrote:
> 
>> dpkg-query will fail on the virtual package and so --compare-versions won't get invoked.
> 
> Doesn't look like it for me...
> dr-wily:~> dpkg-query -W -f '${Version}' firefox
> dr-wily:~> echo $?
> 0
> dr-wily:~> dpkg-query -W firefox
> firefox
> dr-wily:~> echo $?
> 0
> dr-wily:~> apt-cache show firefox
> N: Can't select versions from package 'firefox' as it purely virtual
> N: No packages found

Special.  With dpkg-query 1.16.1.2 on Precise:

$ dpkg-query -W -f'${Version}' zhpy
No packages found matching zhpy.
$ echo $?
1
$ dpkg-query -W zhpy
No packages found matching zhpy.
$ echo $?
1
$ apt-cache show zhpy
N: Can't select versions from package 'zhpy' as it is purely virtual
N: No packages found

As you said, I think we're still ok though in this specific case.

-Jon



home help back first fref pref prev next nref lref last post