[Debian-l10n-commits] r1794 - in /dl10n/trunk: Changelog lib/Debian/Pkg/Diff.pm

nekral-guest at users.alioth.debian.org nekral-guest at users.alioth.debian.org
Wed Jul 22 08:29:35 UTC 2009


Author: nekral-guest
Date: Wed Jul 22 08:29:27 2009
New Revision: 1794

URL: http://svn.debian.org/wsvn/?sc=1&rev=1794
Log:
	* lib/Debian/Pkg/Diff.pm: Fix support for files with a spece in
	their name.

Modified:
    dl10n/trunk/Changelog
    dl10n/trunk/lib/Debian/Pkg/Diff.pm

Modified: dl10n/trunk/Changelog
URL: http://svn.debian.org/wsvn/dl10n/trunk/Changelog?rev=1794&op=diff
==============================================================================
--- dl10n/trunk/Changelog (original)
+++ dl10n/trunk/Changelog Wed Jul 22 08:29:27 2009
@@ -1,3 +1,8 @@
+2009-07-22  Nicolas François  <nicolas.francois at centraliens.net>
+
+	* lib/Debian/Pkg/Diff.pm: Fix support for files with a spece in
+	their name.
+
 2009-07-22  Nicolas François  <nicolas.francois at centraliens.net>
 
 	* dl10n-pts, html/translated.png, html/fuzzy.png,

Modified: dl10n/trunk/lib/Debian/Pkg/Diff.pm
URL: http://svn.debian.org/wsvn/dl10n/trunk/lib/Debian/Pkg/Diff.pm?rev=1794&op=diff
==============================================================================
--- dl10n/trunk/lib/Debian/Pkg/Diff.pm (original)
+++ dl10n/trunk/lib/Debian/Pkg/Diff.pm Wed Jul 22 08:29:27 2009
@@ -282,7 +282,7 @@
 
         #  Read header
         Carp::croak "Malformed diff: line does not begin with ---:\n$self->{curr_line}\n"
-                unless $self->{curr_line} =~ m|^--- ([^/]+)$self->{_olddirsuffix}/(\S+)$self->{_oldfilesuffix}|;
+                unless $self->{curr_line} =~ m|^--- ([^/]+)$self->{_olddirsuffix}/([^\t\n]+)$self->{_oldfilesuffix}|;
         ($dir, $file) = ($1, $2);
         my $fh = $self->{handle};
         $self->{offset} += length($self->{curr_line});




More information about the Debian-l10n-commits mailing list