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

[PATCH 18/25] Make cache policy function safer.



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