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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user