From 2ec7a6cbe56ab1a3a584b8c2c23aa0b79421e86c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 30 Sep 2018 02:38:42 +0100 Subject: i18n: dgit: mark some messages (6) Signed-off-by: Ian Jackson --- dgit | 59 +++++++++++++++++++++++++++++++---------------------------- 1 file changed, 31 insertions(+), 28 deletions(-) diff --git a/dgit b/dgit index fe38f71..68e80df 100755 --- a/dgit +++ b/dgit @@ -4656,7 +4656,7 @@ END my $host = access_cfg('upload-host','RETURN-UNDEF'); my @hostarg = defined($host) ? ($host,) : (); runcmd_ordryrun @dput, @hostarg, $changesfile; - printdone "pushed and uploaded $cversion"; + printdone f_ "pushed and uploaded %s", $cversion; supplementary_message(''); responder_send_command("complete"); @@ -4668,7 +4668,7 @@ sub pre_clone () { sub cmd_clone { parseopts(); my $dstdir; - badusage "-p is not allowed with clone; specify as argument instead" + badusage __ "-p is not allowed with clone; specify as argument instead" if defined $package; if (@ARGV==1) { ($package) = @ARGV; @@ -4679,13 +4679,13 @@ sub cmd_clone { } elsif (@ARGV==3) { ($package,$isuite,$dstdir) = @ARGV; } else { - badusage "incorrect arguments to dgit clone"; + badusage __ "incorrect arguments to dgit clone"; } notpushing(); $dstdir ||= "$package"; if (stat_exists $dstdir) { - fail "$dstdir already exists"; + fail f_ "%s already exists", $dstdir; } my $cwd_remove; @@ -4695,15 +4695,16 @@ sub cmd_clone { return unless defined $cwd_remove; if (!chdir "$cwd_remove") { return if $!==&ENOENT; - die "chdir $cwd_remove: $!"; + confess "chdir $cwd_remove: $!"; } printdebug "clone rmonerror removing $dstdir\n"; if (stat $dstdir) { - rmtree($dstdir) or die "remove $dstdir: $!\n"; + rmtree($dstdir) or fail f_ "remove %s: %s\n", $dstdir, $!; } elsif (grep { $! == $_ } (ENOENT, ENOTDIR, EACCES, EPERM, ELOOP)) { } else { - print STDERR "check whether to remove $dstdir: $!\n"; + print STDERR f_ "check whether to remove %s: %s\n", + $dstdir, $!; } }; } @@ -4740,7 +4741,7 @@ sub fetchpullargs () { } elsif (@ARGV==1) { ($isuite) = @ARGV; } else { - badusage "incorrect arguments to dgit fetch or dgit pull"; + badusage __ "incorrect arguments to dgit fetch or dgit pull"; } notpushing(); } @@ -4756,8 +4757,8 @@ sub cmd_pull { fetchpullargs(); if (quiltmode_splitbrain()) { my ($format, $fopts) = get_source_format(); - madformat($format) and fail <