From: Eric Wong Date: Sat, 23 Jan 2021 10:27:52 +0000 (+0000) Subject: lei forget-external: just show the location X-Git-Tag: v1.7.0~1316 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=44d9e8224729a392c278ea6254038f961c95a0e8;p=public-inbox.git lei forget-external: just show the location No need to show the full key name since the user mainly uses the location. --- diff --git a/lib/PublicInbox/LeiExternal.pm b/lib/PublicInbox/LeiExternal.pm index a4e644ee..5b5f08d1 100644 --- a/lib/PublicInbox/LeiExternal.pm +++ b/lib/PublicInbox/LeiExternal.pm @@ -76,9 +76,9 @@ sub lei_forget_external { delete($cfg->{$key}); $self->_config('--unset', $key); if ($? == 0) { - push @unset, $key; + push @unset, $l; } elsif (($? >> 8) == 5) { - push @not_found, $key; + push @not_found, $l; } else { $self->err("# --unset $key error"); return $self->x_it($?); @@ -86,7 +86,7 @@ sub lei_forget_external { } if (@unset) { next if $quiet; - $self->err("# $_ unset") for @unset; + $self->err("# $_ gone") for @unset; } elsif (@not_found) { $self->err("# $_ not found") for @not_found; } # else { already exited