[Po4a-commits] "po4a changelog,1.144,1.145 po4a,1.64,1.65"

Nicolas FRANCOIS nekral-guest at alioth.debian.org
Thu Nov 30 20:38:19 CET 2006


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

Modified Files:
	changelog po4a 
Log Message:
Directories for POs are also missing in splitted mode.


Index: po4a
===================================================================
RCS file: /cvsroot/po4a/po4a/po4a,v
retrieving revision 1.64
retrieving revision 1.65
diff -u -d -r1.64 -r1.65
--- po4a	30 Nov 2006 14:40:11 -0000	1.64
+++ po4a	30 Nov 2006 19:38:17 -0000	1.65
@@ -834,13 +834,13 @@
                       " $po_filename{$lang}";
             run_cmd($cmd);
 
+            my $dir = dirname($splitted_po{$lang}{$master});
+            if (not -d $dir) {
+                mkdir $dir
+                    or die wrap_msg(gettext("Can't create directory '%s': %s"),
+                                    $dir, $!);
+            }
             unless ($po4a_opts{"force"}) {
-                my $dir = dirname($splitted_po{$lang}{$master});
-                if (not -d $dir) {
-                    mkdir $dir
-                        or die wrap_msg(gettext("Can't create directory '%s': %s"),
-                                        $dir, $!);
-                }
                 move_po_if_needed($tmp_file,
                                   $splitted_po{$lang}{$master},
                                   $po4a_opts{"no-backups"}?0:1);

Index: changelog
===================================================================
RCS file: /cvsroot/po4a/po4a/changelog,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- changelog	30 Nov 2006 14:40:11 -0000	1.144
+++ changelog	30 Nov 2006 19:38:17 -0000	1.145
@@ -1,7 +1,7 @@
 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.
+	* po4a: In splitted mode, always add the directories (for POs and
+	POTs). They were missing when --force is used.
 	* lib/Locale/Po4a/Po.pm: Export move_po_if_needed. Other
 	subroutine are not needed. They are object's methods.
 	* po4a: Import move_po_if_needed, and use it instead of




More information about the Po4a-commits mailing list