[Po4a-commits] "po4a po4a,1.61,1.62 changelog,1.140,1.141"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Thu Nov 30 13:25:30 CET 2006


Update of /cvsroot/po4a/po4a
In directory alioth:/tmp/cvs-serv26144

Modified Files:
	po4a changelog 
Log Message:
In splitted mode, always add the directories. They were missing when
--force is used.


Index: po4a
===================================================================
RCS file: /cvsroot/po4a/po4a/po4a,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- po4a	22 Nov 2006 23:54:52 -0000	1.61
+++ po4a	30 Nov 2006 12:25:28 -0000	1.62
@@ -743,18 +743,18 @@
                                 $!);
         }
 
+        my $dir = dirname($splitted_pot{$master});
+        if (not -d $dir) {
+            mkdir $dir
+                or die wrap_msg(gettext("Can't create directory '%s': %s"),
+                                $dir, $!);
+        }
         my $cmd = "msggrep -N '$master' -o ".
                   ($po4a_opts{"force"}?$splitted_pot{$master}:$tmp_file).
                   " $pot_filename";
         run_cmd($cmd);
 
         unless ($po4a_opts{"force"}) {
-            my $dir = dirname($splitted_pot{$master});
-            if (not -d $dir) {
-                mkdir $dir
-                    or die wrap_msg(gettext("Can't create directory '%s': %s"),
-                                    $dir, $!);
-            }
             Locale::Po4a::Po::move_po_if_needed($tmp_file,
                                                 $splitted_pot{$master});
         }

Index: changelog
===================================================================
RCS file: /cvsroot/po4a/po4a/changelog,v
retrieving revision 1.140
retrieving revision 1.141
diff -u -d -r1.140 -r1.141
--- changelog	25 Nov 2006 22:17:47 -0000	1.140
+++ changelog	30 Nov 2006 12:25:28 -0000	1.141
@@ -1,3 +1,8 @@
+2006-11-30  Nicolas François  <nicolas.francois at centraliens.net>
+
+	* po4a: In splitted mode, always add the directories. They were
+	missing when --force is used.
+
 2006-11-25  Nicolas François  <nicolas.francois at centraliens.net>
 
 	* lib/Locale/Po4a/TransTractor.pm: Export new. This closes




More information about the Po4a-commits mailing list