Author: adsb
Date: 2009-07-16 20:50:41 +0000 (Thu, 16 Jul 2009)
New Revision: 1925
Modified:
trunk/debian/changelog
trunk/scripts/rmadison.pl
Log:
rmadison: When using curl, follow redirects by default. (Also from the Ubuntu
patch).
Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog 2009-07-16 20:47:46 UTC (rev 1924)
+++ trunk/debian/changelog 2009-07-16 20:50:41 UTC (rev 1925)
@@ -14,6 +14,8 @@
* rmadison:
+ Add patch from Ubuntu to make lookups against their database work again.
(The server moved from people.ubuntu.com to people.canonical.com)
+ + When using curl, follow redirects by default. (Also from the Ubuntu
+ patch).
-- Adam D. Barratt <[email protected]> Wed, 01 Jul 2009 18:43:43 +0100
Modified: trunk/scripts/rmadison.pl
===================================================================
--- trunk/scripts/rmadison.pl 2009-07-16 20:47:46 UTC (rev 1924)
+++ trunk/scripts/rmadison.pl 2009-07-16 20:50:41 UTC (rev 1925)
@@ -171,7 +171,7 @@
foreach my $url (@url) {
print "$url:\n" if @url > 1;
$url = $url_map{$url} if $url_map{$url};
- my @cmd = -x "/usr/bin/curl" ? qw/curl -s -S/ : qw/wget -q -O -/;
+ my @cmd = -x "/usr/bin/curl" ? qw/curl -s -S -L/ : qw/wget -q -O -/;
system @cmd, $url . "?package=" . join("+", map { uri_escape($_) } @ARGV)
. "&text=on&" . join ("&", @args);
}
--
To unsubscribe, send mail to [email protected].