about summary refs log tree commit homepage
path: root/script/public-inbox-init
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-12-31 13:51:42 +0000
committerEric Wong <e@80x24.org>2021-01-01 05:00:39 +0000
commit9c7737d056f832824812086373a13922dd08a0c5 (patch)
tree5d7e73f0aac58984095c601afb906323179b0241 /script/public-inbox-init
parent52acde10d4c149bb73b717abdc70720be9a4fe24 (diff)
downloadpublic-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 'script/public-inbox-init')
-rwxr-xr-xscript/public-inbox-init13
1 files changed, 8 insertions, 5 deletions
diff --git a/script/public-inbox-init b/script/public-inbox-init
index 7ac77830..85d14377 100755
--- a/script/public-inbox-init
+++ b/script/public-inbox-init
@@ -185,17 +185,20 @@ $ibx->init_inbox(0, $skip_epoch, $skip_artnum);
 # needed for git prior to v2.1.0
 umask(0077) if defined $perm;
 
+require PublicInbox::Spawn;
+PublicInbox::Spawn->import(qw(run_die));
+
 foreach my $addr (@address) {
         next if $seen{lc($addr)};
-        PublicInbox::Import::run_die([@x, "--add", "$pfx.address", $addr]);
+        run_die([@x, "--add", "$pfx.address", $addr]);
 }
-PublicInbox::Import::run_die([@x, "$pfx.url", $http_url]);
-PublicInbox::Import::run_die([@x, "$pfx.inboxdir", $inboxdir]);
+run_die([@x, "$pfx.url", $http_url]);
+run_die([@x, "$pfx.inboxdir", $inboxdir]);
 
 if (defined($indexlevel)) {
-        PublicInbox::Import::run_die([@x, "$pfx.indexlevel", $indexlevel]);
+        run_die([@x, "$pfx.indexlevel", $indexlevel]);
 }
-PublicInbox::Import::run_die([@x, "$pfx.newsgroup", $ng]) if $ng ne '';
+run_die([@x, "$pfx.newsgroup", $ng]) if $ng ne '';
 
 # needed for git prior to v2.1.0
 if (defined $perm) {