Run file age check, only if we can get a value from __fisher_get_file_age.

This probably means the user does not have python installed on their
system and we will be download the index every time the user runs
ls-remote.

A more sensitive, python-less solution to check file age since the last
time the file was modified should be more desirable.
pull/445/head 2.4.2
Jorge Bucaran 9 years ago
parent f6a25a32ef
commit 4d0cf5dfb4
No known key found for this signature in database
GPG Key ID: E54BA3C0E646DB30

@ -817,8 +817,10 @@ function __fisher_remote_index_update
end end
if test -s "$index" if test -s "$index"
if test (__fisher_get_file_age "$index") -lt "$interval" if set -l file_age (__fisher_get_file_age "$index")
return if test "$file_age" -lt "$interval"
return
end
end end
end end

Loading…
Cancel
Save