]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/AltId.pm
config: support "inboxdir" in addition to "mainrepo"
[public-inbox.git] / lib / PublicInbox / AltId.pm
index 6103d52e7fba0a4768a0bad20e2d7071bec5b53e..b4daaed2b64c56355ba539bebd60f1e173c7c350 100644 (file)
@@ -32,9 +32,9 @@ sub new {
        my $f = $params{file} or die "file: required for $type spec $spec\n";
        unless (index($f, '/') == 0) {
                if (($ibx->{version} || 1) == 1) {
-                       $f = "$ibx->{mainrepo}/public-inbox/$f";
+                       $f = "$ibx->{inboxdir}/public-inbox/$f";
                } else {
-                       $f = "$ibx->{mainrepo}/$f";
+                       $f = "$ibx->{inboxdir}/$f";
                }
        }
        bless {