diff options
author | Eric Wong <e@80x24.org> | 2020-12-31 13:51:42 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-01-01 05:00:39 +0000 |
commit | 9c7737d056f832824812086373a13922dd08a0c5 (patch) | |
tree | 5d7e73f0aac58984095c601afb906323179b0241 /lib/PublicInbox/Import.pm | |
parent | 52acde10d4c149bb73b717abdc70720be9a4fe24 (diff) | |
download | public-inbox-9c7737d056f832824812086373a13922dd08a0c5.tar.gz |
It seems like a more logical place for it, but we'll favor the newly-added xsys_e() in tests for BAIL_OUT use.
Diffstat (limited to 'lib/PublicInbox/Import.pm')
-rw-r--r-- | lib/PublicInbox/Import.pm | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index 60cff9c2..6f387b77 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -9,7 +9,7 @@ package PublicInbox::Import; use strict; use parent qw(PublicInbox::Lock); use v5.10.1; -use PublicInbox::Spawn qw(spawn popen_rd); +use PublicInbox::Spawn qw(run_die popen_rd); use PublicInbox::MID qw(mids mid2path); use PublicInbox::Address; use PublicInbox::Smsg; @@ -442,13 +442,6 @@ sub add { $self->{tip} = ":$commit"; } -sub run_die ($;$$) { - my ($cmd, $env, $rdr) = @_; - my $pid = spawn($cmd, $env, $rdr); - waitpid($pid, 0) == $pid or die join(' ', @$cmd) .' did not finish'; - $? == 0 or die join(' ', @$cmd) . " failed: $?\n"; -} - my @INIT_FILES = ('HEAD' => undef, # filled in at runtime 'description' => <<EOD, Unnamed repository; edit this file 'description' to name the repository. |