global-functions: $DownloadPackage: re-introduce check for valid package

Even if fetch tool does its job right now... Chances are that the
download servers have corrupted or empty files.
This commit is contained in:
Christian Hesse 2019-08-01 18:45:54 +02:00
parent 70798de8f0
commit ab4aef4dfb

View file

@ -200,6 +200,11 @@
:return false; :return false;
} }
:if ([ / file get [ find where name=$PkgDest ] type ] != "package") do={
/ file remove [ find where name=$PkgDest ];
:return false;
}
:return true; :return true;
} }