Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Completion: _opkg: Support gain-privileges



On 12 Jan 2019, at 11:10, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>I don't think so.  Even an "empty" result could be expensive to compute:
>for example, it might require a network round-trip.  I think _opkg
>shouldn't call _store_cache when _call_program returns non-zero.

Well, i think that's effectively the same thing in this case and certain
others i'm imagining. (Or at least i assume so; there's not really any
documentation for opkg that i'm aware of, so who knows what actually causes it
to return non-zero.) Just felt like it might save some boiler-plate, which the
caching logic is extremely heavy in already, to have a standard option handle
it. I can just add the guard to each _store_cache call myself, though, obv

dana



Messages sorted by: Reverse Date, Date, Thread, Author