From 526f25b2da71377da8e2d8c9a3b717411e58682f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 8 Dec 2020 21:21:29 +0000 Subject: admin: resolve_repo_dir => resolve_inboxdir We've stopped referring to inboxdirs as "repos" a while ago since v2 inboxes have multiple git repos associated with them. So update the name to reflect that and avoid an unnecessary export that's only used by a test case. --- lib/PublicInbox/Admin.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/PublicInbox/Admin.pm') diff --git a/lib/PublicInbox/Admin.pm b/lib/PublicInbox/Admin.pm index ec80b565..eeef2f63 100644 --- a/lib/PublicInbox/Admin.pm +++ b/lib/PublicInbox/Admin.pm @@ -8,7 +8,7 @@ use strict; use parent qw(Exporter); use Cwd qw(abs_path); use POSIX (); -our @EXPORT_OK = qw(resolve_repo_dir setup_signals); +our @EXPORT_OK = qw(setup_signals); use PublicInbox::Config; use PublicInbox::Inbox; use PublicInbox::Spawn qw(popen_rd); @@ -27,7 +27,7 @@ sub setup_signals { }; } -sub resolve_repo_dir { +sub resolve_inboxdir { my ($cd, $ver) = @_; my $prefix = defined $cd ? $cd : './'; if (-d $prefix && -f "$prefix/inbox.lock") { # v2 @@ -121,7 +121,7 @@ EOF push @dirs, '.' if !@dirs && $opt->{-use_cwd}; foreach (@dirs) { my $v; - my $dir = resolve_repo_dir($_, \$v); + my $dir = resolve_inboxdir($_, \$v); if ($v < $min_ver) { push @old, $dir; next; -- cgit v1.2.3-24-ge0c7