Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 18/25] Make cache policy function safer.
- X-seq: zsh-workers 42845
- From: doron.behar@xxxxxxxxx
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 18/25] Make cache policy function safer.
- Date: Sat, 26 May 2018 18:06:27 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=YI34OcEXlg/KIMIZL+odzQqco1wPI9M3o1UlfhGHTrg=; b=hW4ZCGBK5Ka+Pdp++nMcNSXR1d753J2edyeK6HI92DeZ+2K/vSFI3rwAKTMjP5k8Hc 9Q08hTMAYJKt2wFvNnqHmKnsssRxHVGrcrAT3cx/YxKOnXCjaHNqnucTc6DCc1hpD/lz OYwxg0OkeXzNPaptufpkKdUygzny6N5UdVPR9DsUIFubBWnPqf9eh5KZI19N2U/PM4m3 R0pFg0flY0jP8LrwY8bTtBeVxzKAuptIBiszzMq5gbLnkQ5ViYUAg5HbbmgcUjlJc7o3 bEs6IcJ/R26C0GMM+tdf8Jq4fJntnWzfV7DI7bgSP0iUlGD/Awekl/1nq97aH7IjNi+K vh4A==
- In-reply-to: <20180526150634.15683-1-doron.behar@gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20180526150634.15683-1-doron.behar@gmail.com>
From: Doron Behar <doron.behar@xxxxxxxxx>
Add TODO for using zstyle for manifest files location when checking when
they were last modified.
---
Completion/Unix/Command/_luarocks | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Completion/Unix/Command/_luarocks b/Completion/Unix/Command/_luarocks
index d7355c1ba..05a1e1d38 100644
--- a/Completion/Unix/Command/_luarocks
+++ b/Completion/Unix/Command/_luarocks
@@ -82,6 +82,7 @@ __luarocks_lua_versions(){
# }}}
# {{{ helper: installed rocks cache policy
___luarocks_installed_rocks_cache_policy(){
+ # TODO enable the user to configure manifests file that will be checked here with zstyle
# the number of seconds since 1970-01-01 the manifest file was modified
local manifest_last_date_modified="$(date -r ~/.luarocks/lib/luarocks/rocks-5.3/manifest +%s 2>/dev/null)"
# the number of seconds since 1970-01-01 the cache file was modified
@@ -93,6 +94,8 @@ ___luarocks_installed_rocks_cache_policy(){
else
(( 0 ))
fi
+ else
+ (( 1 ))
fi
}
# }}}
--
2.17.0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author