X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FWwwAltId.pm;h=204e2f826871d2b8ffca559346d288c55aef1e2c;hb=e3b57fe9f68e80fc85cff46ccec9246b670f1312;hp=e5476d1f50aeedf467feac6c0af56e57ce4baba7;hpb=a318e758129d616b3b801db82c4735c680a2fbe8;p=public-inbox.git diff --git a/lib/PublicInbox/WwwAltId.pm b/lib/PublicInbox/WwwAltId.pm index e5476d1f..204e2f82 100644 --- a/lib/PublicInbox/WwwAltId.pm +++ b/lib/PublicInbox/WwwAltId.pm @@ -11,16 +11,6 @@ use PublicInbox::Spawn qw(which); use PublicInbox::GzipFilter; our $sqlite3 = $ENV{SQLITE3}; -sub sqlite3_missing ($) { - html_oneshot($_[0], 501, \<sqlite3 not available - -The administrator needs to install the sqlite3(1) binary -to support gzipped sqlite3 dumps. - -EOF -} - sub check_output { my ($r, $bref, $ctx) = @_; return html_oneshot($ctx, 500) if !defined($r); @@ -40,7 +30,7 @@ sub check_output { sub sqldump ($$) { my ($ctx, $altid_pfx) = @_; my $env = $ctx->{env}; - my $ibx = $ctx->{-inbox}; + my $ibx = $ctx->{ibx}; my $altid_map = $ibx->altid_map; my $fn = $altid_map->{$altid_pfx}; unless (defined $fn) { @@ -65,16 +55,12 @@ or EOF } - $sqlite3 //= which('sqlite3'); - if (!defined($sqlite3)) { - return html_oneshot($ctx, 501, \<sqlite3 not available The administrator needs to install the sqlite3(1) binary to support gzipped sqlite3 dumps. - EOF - } # setup stdin, POSIX requires writes <= 512 bytes to succeed so # we can close the pipe right away.