1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

script: consider that empty file "plugins.xml.gz" is not up-to-date

This commit is contained in:
Sebastien Helleu
2012-09-18 10:07:02 +02:00
parent 9070cc5659
commit b5f7c124ea
+7
View File
@@ -1038,6 +1038,13 @@ script_repo_file_is_uptodate ()
return 0;
}
/* file is empty? => NOT up-to-date */
if (st.st_size == 0)
{
free (filename);
return 0;
}
/* cache never expires? => OK, up-to-date! */
if (cache_expire < 0)
{