On Mon, Sep 17, 2012 at 10:49:06PM +0800, Daniel Hartwig wrote:
>On 17 September 2012 22:37, Steve McIntyre <[email protected]> wrote:
>> ACK. I was a little surprised to see the output format here. I've
>> added support for parsing the versions in apt's internal format, by
>> digging through source code to find the definitions. I can always
>> switch that code back to parsing human-readable text, thought.
>
>There is also libdpkg-perl with Dpkg::Deps deps_parse that will parse
>the “Depends: foo | bar, baz (...” lines from Packages/apt-cache show.

Yup. I know. I'm going to end up using some of the Dpkg::Deps code to
at least allow me to do sensible version comparisons, but the rest of
the code is probably less useful in this case. Rather than dig through
things like virtual depends, it's much easier to just let apt tell me
about them...

-- 
Steve McIntyre, Cambridge, UK.                                [email protected]
"Since phone messaging became popular, the young generation has lost the
 ability to read or write anything that is longer than one hundred and sixty
 characters."  -- Ignatios Souvatzis


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to