[Po4a-commits] r2317 - /trunk/po4a

barbier-guest at users.alioth.debian.org barbier-guest at users.alioth.debian.org
Wed Nov 3 21:52:17 UTC 2010


Author: barbier-guest
Date: Wed Nov  3 21:52:16 2010
New Revision: 2317

URL: http://svn.debian.org/wsvn/po4a/?sc=1&rev=2317
Log:
Fix the --srcdir option, master file was not found

Modified:
    trunk/po4a

Modified: trunk/po4a
URL: http://svn.debian.org/wsvn/po4a/trunk/po4a?rev=2317&op=diff
==============================================================================
--- trunk/po4a (original)
+++ trunk/po4a Wed Nov  3 21:52:16 2010
@@ -880,6 +880,9 @@
 	chdir $po4a_opts{"calldir"}
 	    if (defined $po4a_opts{"srcdir"});
     } elsif ($cmd =~ m/type: *(.*)/) {
+	chdir $po4a_opts{"srcdir"}
+	    if (defined $po4a_opts{"srcdir"});
+
 	if (defined $document{$main}{'format'}) {
 	    warn wrap_ref_mod("$config_file:$nb", "",
 		gettext("The '%s' master file was specified earlier in the ".
@@ -935,8 +938,6 @@
 	}
 	%{$document{$main}{'options'}} = %options;
 
-	chdir $po4a_opts{"srcdir"}
-	    if (defined $po4a_opts{"srcdir"});
 	my %discarded = ();
 	my @remaining_args = split(/ /,$args);
 	while (@remaining_args) {




More information about the Po4a-commits mailing list