[Debian-l10n-commits] r1061 - /dl10n/trunk/dl10n-check

nekral-guest at users.alioth.debian.org nekral-guest at users.alioth.debian.org
Fri Jun 20 22:09:35 UTC 2008


Author: nekral-guest
Date: Fri Jun 20 22:09:35 2008
New Revision: 1061

URL: http://svn.debian.org/wsvn/?sc=1&rev=1061
Log:
Quote the parameter to gzip and the file for the redirected output.
This fix a dl10n-check issue when po files (or their path) contain spaces
(e.g. in the boinc package).

Modified:
    dl10n/trunk/dl10n-check

Modified: dl10n/trunk/dl10n-check
URL: http://svn.debian.org/wsvn/dl10n/trunk/dl10n-check?rev=1061&op=diff
==============================================================================
--- dl10n/trunk/dl10n-check (original)
+++ dl10n/trunk/dl10n-check Fri Jun 20 22:09:35 2008
@@ -613,9 +613,9 @@
                         my $dir = $new;
                         $dir =~ s,/[^/]*$,,;
                         File::Path::mkpath($dir, 0, 0755) unless -d $dir;
-                        if (system("gzip -9f -c $old > $new.gz")) {
+                        if (system("gzip -9f -c \"$old\" > \"$new.gz\"")) {
                                 unlink "$new.gz";
-                                warn "Cannot run: gzip -9f -c $old > $new.gz: $!\n";
+                                warn "Cannot run: gzip -9f -c \"$old\" > \"$new.gz\": $!\n";
                         }
                 }
         }




More information about the Debian-l10n-commits mailing list