From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 6E9591FA1A for ; Sat, 23 Jan 2021 10:27:56 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 07/10] lei forget-external: just show the location Date: Sat, 23 Jan 2021 10:27:52 +0000 Message-Id: <20210123102755.425-8-e@80x24.org> In-Reply-To: <20210123102755.425-1-e@80x24.org> References: <20210123102755.425-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: No need to show the full key name since the user mainly uses the location. --- lib/PublicInbox/LeiExternal.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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