On 07/24/2013 02:33 AM, Tony Breeds wrote:
On Tue, Jul 23, 2013 at 10:01:51PM +0300, Ville Skyttä wrote:
On 2013-07-23 08:04, Ralf Corsepius wrote:

For similar purposes, I have been using the CSV table returned by
"https://admin.fedoraproject.org/pkgdb/lists/bugzilla?tg_format=plain";

I am downloading the CSV-table and then use scripts to filter the CSV
into lists and subsequently to feed them into further scripts for
further processing.

I've used that approach too sometime and it certainly works, but it'll
take ages to clone every package from git (even though the cloning can
be trivially parallelized with xargs -P or parallel).

Sorry to be dense but if you know the package name and you only care
about the specfile can't you do something like:
The problem is that you don't know the package names ;)

base_url='http://pkgs.fedoraproject.org'

for pkg in $pkgs ; do
        wget -o $pkg.log -O $pkg.spec \
                "$base_url/cgit/${pkg}.git/plain/${pkg}.spec?id=HEAD" &
done

You can even vary HEAD, to be f18,f19 to look at other releases.

It saves you the git clone, which across the whole pakage base could be
significant.
Correct, but in cases of mass-changes, you normally need the git clone.

Ralf



--
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel

Reply via email to