[Mageia-dev] Automatically determining all "GNOME" packages

Pascal Terjan pterjan at gmail.com
Thu Feb 9 11:28:24 CET 2012

2012/2/9 nicolas vigier <boklm at mars-attacks.org>:
> On Thu, 09 Feb 2012, Olav Vitters wrote:
>> For GNOME QA purposes, I'd like to list all Mageia packages which come
>> from *.gnome.org (download.gnome.org or ftp.gnome.org).
>> In the spec file, the Source: usually has an URL. IMO the most reliable
>> option is checking the Source: URL.
>> I thought of matching http://git.gnome.org/repositories.txt or
>> http://download.gnome.org/sources to the Mageia package name; but I
>> already know that there are differences.
>> I also looked into "urpmq", but I don't see any way to determine the
>> Source URL.
>> So: anyone know of a good way to query the Source: URL from all the spec
>> files?
> You can use info.xml.lzma files on mirrors.
> With something like this :
> GET http://twiska.zarb.org/mageia/distrib/cauldron/SRPMS/core/release/media_info/info.xml.lzma \
> | unxz | perl -MXML::Simple -e 'print join "\n", map { $_->{"fn"} } grep { $_->{"url"} =~ /\.gnome\.org/ } @{XMLin("-")->{"info"}};'

Or just urpmf on the src media :)

More information about the Mageia-dev mailing list