From 849f57851a04e376cf2327d9e98e8128bf3c756e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 15 Oct 2019 01:38:25 +0000 Subject: [PATCH] config: allow "0" as a valid mainrepo path It's probably wrong to use relative path names, but things are all relative these days anyways with shared and networked FSes. --- lib/PublicInbox/Config.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index e0329ebf..509de0a0 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -93,7 +93,7 @@ sub each_inbox { # may auto-vivify if config file is non-existent: foreach my $section (@{$self->{-section_order}}) { next if $section !~ m!\Apublicinbox\.([^/]+)\z!; - $self->{"publicinbox.$1.mainrepo"} or next; + defined($self->{"publicinbox.$1.mainrepo"}) or next; my $ibx = lookup_name($self, $1) or next; $cb->($ibx); } -- 2.44.0