From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27498 invoked from network); 11 Jul 2023 10:18:17 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 11 Jul 2023 10:18:17 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1689070697; b=QsTXM5+RxuMJQGsJeOjcmGV3fIP3dBuc4VA8VXdmwHwHfH/aLp8IczZ8WH73CXdzCS5DrOy2YM f5+F3Ni3cPuoU/HjxM0xP1xLSeiwv/DdzlBVbuqOK00vaAnwR2So9ztkcmRX3ah+mqs+foLQ/T SBVCFw5oGlO42NynbQDkziiftRSM9udBmta3hgMTUf3dGEeqdLdNu9nvVZcqUiB5JOF4Kt9Q24 VFOTX00UhrmJ/26bRosuF+VWG5+UtUO6EzTJd5MlyLDMXjkzDnz7wZu7cMg9By1Cw2fzz+TZr6 MotvTwbcLUh/x1EfoflvQrYm99ijk/uysCuW+EYWWZry4Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (snd11005-bg.im.kddi.ne.jp) smtp.remote-ip=222.227.83.21; dmarc=none header.from=kba.biglobe.ne.jp; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1689070697; bh=A1i+EEIITu5ZQW7uG2NUvgbLNeGvbPc1+5NV12ifAxE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Message-ID:In-Reply-To:To:References:Date:Subject: MIME-Version:Content-Transfer-Encoding:Content-Type:From:DKIM-Signature; b=gdKpqyFc6AuBYErJyYmZVmW1Mtk7WE3tZuxB0Zd9vsa1zMFckS2T54ByD4txj/TwY36pA9gcp1 bC49CGBMcDmnDCstBfIg01B6jSjDYcZVjnhP/+I1bKWkMOdZ6y3P2pY8pBGLBj2lhr2T1Nfk8P I1Z53vtjGTEyagIvp0U5+t9WlM2wfPD7ZWAqtEKdyl+kU8wSrDzs1bAfDjc2a7kM2PHQAyyqWQ j345oe2lcpJSAbs2nlAGqU79R2ngOBnEk/NoKgpBKqvQJO8ZPME27eStl6OpbnpzEyRycD+hCD 3gF+6nwQhJua2o41ucLQ4W6Ps5IRaTYz+blJLQvIAPPnHg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Message-Id:In-Reply-To:To:References: Date:Subject:Mime-Version:Content-Transfer-Encoding:Content-Type:From: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=aHrPz4IUPnemXmlOP5X5iXkB8stwZJqjBhb+qcnc6bk=; b=k8Oy9UFRoZ+dMP6mng+inhe9ZF +FRaEo1XJGFPubcOz7X3itVsqi09hHMD+aZ9YrEB0IlXGhhQ2liDX6hx977WlN1JBX0+/DCJpjGk8 MIoHS4Co7jd+qlfrzmQJW9uRhAXBpCYu06tbKZK9IlFGXEVbcqqDNc08kLWNqm7vC+GHu6f+muydZ cFq5HajDx+MYA3AtPEarE5iqat5eB1pKWvMHMQJF4pL2ZqWwMBQ3wgMRPzY0UXEZQDmMCy0beJ+nC bQzql3FJUjlXeyEpVGaXqfUghSUJ+1Djhh5O2qe6yPr6JOf/gQ4FFS/3enZXGybWljaM6GAKBZNfl hcLM/gTQ==; Received: by zero.zsh.org with local id 1qJARk-0003aN-R4; Tue, 11 Jul 2023 10:18:16 +0000 Authentication-Results: zsh.org; iprev=pass (snd11005-bg.im.kddi.ne.jp) smtp.remote-ip=222.227.83.21; dmarc=none header.from=kba.biglobe.ne.jp; arc=none Received: from snd11005-bg.im.kddi.ne.jp ([222.227.83.21]:56481 helo=dfmta1003.biglobe.ne.jp) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1qJAR5-0003FX-GK; Tue, 11 Jul 2023 10:17:38 +0000 Received: from mail.biglobe.ne.jp by omta1003.biglobe.ne.jp with ESMTP id <20230711101729303.USXE.13719.mail.biglobe.ne.jp@biglobe.ne.jp> for ; Tue, 11 Jul 2023 19:17:29 +0900 From: Jun T Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: Re: [EXTERNAL] Re: Unexpected installation of SQLite during "sudo dnf autoremove" command Date: Tue, 11 Jul 2023 19:17:28 +0900 References: <66435637-82c1-464e-85fb-bd3cd485052e.f0af137d-67f0-47ab-b7f8-5e0e70df6b34.3dfd4d24-34e4-4553-a1f5-ce63b21694b3@emailsignatures365.codetwo.com> <66435637-82c1-464e-85fb-bd3cd485052e.95e17f34-409d-4b8c-b99b-e6635451f7ff.245922ee-0718-4a4c-94a2-58ad892ba0fd@emailsignatures365.codetwo.com> To: zsh-workers@zsh.org In-Reply-To: Message-Id: <1A6F7F91-221C-465E-B630-99FADFD8DDC7@kba.biglobe.ne.jp> X-Mailer: Apple Mail (2.3445.104.21) X-Biglobe-Sender: takimoto-j@kba.biglobe.ne.jp X-Seq: 51920 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: > 2023/07/11 17:12=E3=80=81Mirko Mato=C5=A1in = =E3=81=AE=E3=83=A1=E3=83=BC=E3=83=AB: >=20 > As soon as i hit tab after autoremove it wants to install sqlite In my case I get: Install package 'sqlite' to provide command 'sqlite3'? [N/y] and just hitting RETURN does not install sqlite (although the screen is rather cluttered). > 2023/07/11 17:46=E3=80=81Roman Perepelitsa = =E3=81=AE=E3=83=A1=E3=83=BC=E3=83=AB: >=20 > I see that Completion/Redhat/Command/_dnf invokes sqlite3 > conditionally if /var/cache/dnf/packages.db exists. So we can avoid calling sqlite3 if the command is not available, as in the patch below. But the completion is somewhat faster if you have sqlite3 command (one or two seconds vs. almost instant?). What is the best way to inform users that installing sqlite package will make the completion (somewhat) faster? Or is the completion reasonably fast even without sqlite3? # If I remember correctly, a few or several years ago, completing # package names without sqlite3 was much slower (this may be just my # wrong memory). But anyway it is still slower=20 diff --git a/Completion/Redhat/Command/_dnf = b/Completion/Redhat/Command/_dnf index ce111f38f..3fbd73352 100644 --- a/Completion/Redhat/Command/_dnf +++ b/Completion/Redhat/Command/_dnf @@ -40,7 +40,7 @@ _dnf_packages() { selected=3D$selected[2] if [[ $selected =3D upgradable ]]; then pkgs=3D( $(_dnf_helper upgrade) ) - elif [[ -r $cache_file ]]; then + elif [[ -r $cache_file && -n $commands[sqlite3] ]]; then local table=3D$selected # 'available' table contains both 'available' and 'installed' = packages [[ $selected =3D all ]] && table=3Davailable