[Po4a-commits] "po-debconf podebconf-report-po,1.49,1.50"
Nicolas FRANCOIS
nekral-guest at alioth.debian.org
Thu May 8 14:47:36 UTC 2008
Update of /cvsroot/po4a/po-debconf
In directory alioth:/tmp/cvs-serv782
Modified Files:
podebconf-report-po
Log Message:
In the --call mode, die if --languageteam is used without the
--withtranslators is specified. Closes: #480164
Fix typo (s/--with-translators/--withtranslators/)
Index: podebconf-report-po
===================================================================
RCS file: /cvsroot/po4a/po-debconf/podebconf-report-po,v
retrieving revision 1.49
retrieving revision 1.50
diff -u -d -r1.49 -r1.50
--- podebconf-report-po 8 May 2008 13:22:39 -0000 1.49
+++ podebconf-report-po 8 May 2008 14:47:31 -0000 1.50
@@ -166,6 +166,11 @@
die "$PROGRAM: This program requires the libmail-sendmail-perl package.\n".
"$PROGRAM: Aborting!\n" if $@;
+# Check invalid set of options
+if ($LANGUAGETEAM_ARG && defined $CALL && not $CALL_WITH_TRANSLATORS) {
+ die "In the --call mode, the --languageteam option is only valid if --withtranslators is specified.\n";
+}
+
my $conf = "";
unless ($NO_CONF or !defined $CONF_ARG) {
@@ -337,7 +342,7 @@
$CALL_WITH_TRANSLATORS = 0;
}
-# Disable --with-translators if no call for translations are requested with
+# Disable --withtranslators if no call for translations are requested with
# --call.
$CALL_WITH_TRANSLATORS = 0 unless defined $CALL;
@@ -368,7 +373,7 @@
foreach my $d (qw{.. .}) {
$PODIR = "$d/po" if (-d "$d/po");
}
- }Â else {
+ } else {
foreach my $d (@TOPDIRS) {
$PODIR = "$d/debian/po" if (-d "$d/debian/po");
}
More information about the Po4a-commits
mailing list