[Debian-l10n-commits] r1491 - in /dl10n/trunk: Changelog dl10n-rrd/manpages-rrd.pl
nekral-guest at users.alioth.debian.org
nekral-guest at users.alioth.debian.org
Sun Dec 7 20:01:59 UTC 2008
Author: nekral-guest
Date: Sun Dec 7 20:01:59 2008
New Revision: 1491
URL: http://svn.debian.org/wsvn/?sc=1&rev=1491
Log:
* dl10n-rrd/manpages-rrd.pl: Fix wrong detection of system()
failures. Improve error messages.
Modified:
dl10n/trunk/Changelog
dl10n/trunk/dl10n-rrd/manpages-rrd.pl
Modified: dl10n/trunk/Changelog
URL: http://svn.debian.org/wsvn/dl10n/trunk/Changelog?rev=1491&op=diff
==============================================================================
--- dl10n/trunk/Changelog (original)
+++ dl10n/trunk/Changelog Sun Dec 7 20:01:59 2008
@@ -1,3 +1,8 @@
+2008-12-06 Nicolas François <nicolas.francois at centraliens.net>
+
+ * dl10n-rrd/manpages-rrd.pl: Fix wrong detection of system()
+ failures. Improve error messages.
+
2008-12-06 Nicolas François <nicolas.francois at centraliens.net>
* lib/Debian/L10n/Spider.pm: check_bts_bug_soap() is now in the
Modified: dl10n/trunk/dl10n-rrd/manpages-rrd.pl
URL: http://svn.debian.org/wsvn/dl10n/trunk/dl10n-rrd/manpages-rrd.pl?rev=1491&op=diff
==============================================================================
--- dl10n/trunk/dl10n-rrd/manpages-rrd.pl (original)
+++ dl10n/trunk/dl10n-rrd/manpages-rrd.pl Sun Dec 7 20:01:59 2008
@@ -29,11 +29,11 @@
if (-f "Contents-$arch.gz") {
unlink "Contents-$arch.gz";
}
- system "wget -c --quiet $MIRROR/dists/$dist/Contents-$arch.gz"
- or die "wget failed to download $MIRROR/dists/$dist/Con$MIRROR/dists/$dist/Contents-$arch.gz . Aborting.";
+ system ("wget", "-c", "--quiet", "$MIRROR/dists/$dist/Contents-$arch.gz") == 0
+ or die "wget failed to download $MIRROR/dists/$dist/Contents-$arch.gz . Aborting.";
- die "Missing $MIRROR/dists/$dist/Contents-$arch.gz . Aborting."
- unless -f "$MIRROR/dists/$dist/Contents-$arch.gz";
+ die "Missing Contents-$arch.gz . Aborting."
+ unless -f "Contents-$arch.gz";
open(CONTENT, "gunzip -c 'Contents-$arch.gz'|")
or die "Cannot open 'Contents-$arch.gz'";
More information about the Debian-l10n-commits
mailing list