Author: thoger
Update of /cvs/fedora/fedora-security/tools/lib/Libexig In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv3052/lib/Libexig
Modified Files: Tag: lkundrak-tools-ng Bodhi.pm Log Message: getting number of updates per package should no longer be needed with current bodhi version, 0 seems to work well
Index: Bodhi.pm =================================================================== RCS file: /cvs/fedora/fedora-security/tools/lib/Libexig/Attic/Bodhi.pm,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- Bodhi.pm 6 Jan 2008 03:31:53 -0000 1.1.2.1 +++ Bodhi.pm 10 Jan 2008 14:56:12 -0000 1.1.2.2 @@ -79,15 +79,9 @@ my @retval;
- # Get number of updates - - # XXX escape - my $json = `wget --post-data 'package=$pkg&tg_paginate_limit=1' -qO - 'https://admin.fedoraproject.org/updates/list?tg_format=json%27%60; - my $obj = jsonToObj ($json); - - # Get updates themselves - - $json = `wget --post-data 'package=$pkg&tg_paginate_limit=$obj->{num_items}' -qO - 'https://admin.fedoraproject.org/updates/list?tg_format=json%27%60; + # Get updates + $json = `wget --post-data 'package=$pkg&tg_paginate_limit=0' -qO - \ + 'https://admin.fedoraproject.org/updates/list?tg_format=json%27%60; $obj = jsonToObj ($json);
foreach my $update (@{$obj->{'updates'}}) {
security-commits@lists.fedoraproject.org