[Po4a-commits] "po4a po4a,1.63,1.64 changelog,1.143,1.144"

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


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

Modified Files:
	po4a changelog 
Log Message:
Add a backup argument tot specify if we want a ~ backup file.


Index: po4a
===================================================================
RCS file: /cvsroot/po4a/po4a/po4a,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -d -r1.63 -r1.64
--- po4a	30 Nov 2006 14:15:11 -0000	1.63
+++ po4a	30 Nov 2006 14:40:11 -0000	1.64
@@ -756,7 +756,7 @@
         run_cmd($cmd);
 
         unless ($po4a_opts{"force"}) {
-            move_po_if_needed($tmp_file, $splitted_pot{$master});
+            move_po_if_needed($tmp_file, $splitted_pot{$master}, 0);
         }
     }
     # Generate a complete .po
@@ -842,7 +842,8 @@
                                         $dir, $!);
                 }
                 move_po_if_needed($tmp_file,
-                                  $splitted_po{$lang}{$master});
+                                  $splitted_po{$lang}{$master},
+                                  $po4a_opts{"no-backups"}?0:1);
             }
         }
     }

Index: changelog
===================================================================
RCS file: /cvsroot/po4a/po4a/changelog,v
retrieving revision 1.143
retrieving revision 1.144
diff -u -d -r1.143 -r1.144
--- changelog	30 Nov 2006 14:17:15 -0000	1.143
+++ changelog	30 Nov 2006 14:40:11 -0000	1.144
@@ -6,7 +6,12 @@
 	subroutine are not needed. They are object's methods.
 	* po4a: Import move_po_if_needed, and use it instead of
 	Locale::Po4a::Po::move_po_if_needed().
-	* lib/Locale/Po4a/Po.pm: Add reason for failures of system calls.
+	* lib/Locale/Po4a/Po.pm (move_po_if_needed): Add reason for
+	failures of system calls.
+	* lib/Locale/Po4a/Po.pm (move_po_if_needed): Add a backup argument
+	to specify if we want a ~ backup file.
+	* po4a: Use the backup argument of move_po_if_needed: no backups
+	for temp files; no backups when the no-backups option is used.
 
 2006-11-25  Nicolas François  <nicolas.francois at centraliens.net>
 




More information about the Po4a-commits mailing list