From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4460 invoked by alias); 5 Feb 2011 07:31:24 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28704 Received: (qmail 7187 invoked from network); 5 Feb 2011 07:30:56 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.1 Received-SPF: none (ns2.melb.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <110204070416.ZM23211@torch.brasslantern.com> Date: Fri, 04 Feb 2011 07:04:16 -0800 In-reply-to: <110203202907.ZM22434@torch.brasslantern.com> Comments: In reply to Bart Schaefer "Re: Slow completion when using aptitude" (Feb 3, 8:29pm) References: <87oc74dpuy.fsf@ft.bewatermyfriend.org> <87d3njemu9.fsf@ft.bewatermyfriend.org> <110126090508.ZM2111@torch.brasslantern.com> <110126092944.ZM2205@torch.brasslantern.com> <110129211610.ZM21714@torch.brasslantern.com> <110129231514.ZM21967@torch.brasslantern.com> <110130160220.ZM15815@torch.brasslantern.com> <110203065608.ZM21224@torch.brasslantern.com> <110203193315.ZM22047@torch.brasslantern.com> <110203202907.ZM22434@torch.brasslantern.com> In-reply-to: Comments: In reply to cheer_xiao "Re: Slow completion when using aptitude" (Feb 4, 1:46pm) X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org, cheer_xiao Subject: Re: Slow completion when using aptitude MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Feb 4, 1:46pm, cheer_xiao wrote: } } is "dep_packages_cache_uninstalled" a typo? Yes. I don't actually have apt installed anywhere, so I can't test whether the output of these functions are correct. Let's try this again -- I *believe* I've nixed all the typos but proofread before deployment: _deb_packages_update_uninstalled () { _deb_packages_update_avail _deb_packages_update_installed if (( ! $+_deb_packages_cache_uninstalled )); then # Package lists too large to efficiently diff with zsh expansion _deb_packages_cache_uninstalled=( $( print -l $_deb_packages_cache_avail | fgrep -xvf =(print -l $_deb_packages_cache_installed) ) ) fi }