aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/__fish_print_packages.fish
diff options
context:
space:
mode:
authorGravatar aliva <ali.vakilzade@gmail.com>2013-03-02 01:48:56 +0330
committerGravatar aliva <ali.vakilzade@gmail.com>2013-03-02 01:48:56 +0330
commit3bfcd5e1052c5840a23e7a5f3c91ac9d927289d6 (patch)
treec8a14d3d6598e7aca2cf4bcd23b04a15ddbdeec6 /share/functions/__fish_print_packages.fish
parent87aca05e7f254a65e22d49293e1ce6893af9a5e2 (diff)
recreate yum-cache file every six hours.
Diffstat (limited to 'share/functions/__fish_print_packages.fish')
-rw-r--r--share/functions/__fish_print_packages.fish4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/functions/__fish_print_packages.fish b/share/functions/__fish_print_packages.fish
index 6573ce8e..6ee76c55 100644
--- a/share/functions/__fish_print_packages.fish
+++ b/share/functions/__fish_print_packages.fish
@@ -25,13 +25,13 @@ function __fish_print_packages
# yum is slow, just like rpm, so go to the background
if type -f /usr/share/yum-cli/completion-helper.py >/dev/null
- # If the cache is less than five minutes old, we do not recalculate it
+ # If the cache is less than six hours old, we do not recalculate it
set cache_file /tmp/.yum-cache.$USER
if test -f $cache_file
cat $cache_file
set age (math (date +%s) - (stat -c '%Y' $cache_file))
- set max_age 250
+ set max_age 21600
if test $age -lt $max_age
return
end