From c03764187774a3751356b540823d8813f0db641f Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Thu, 20 Jun 2019 00:02:32 +0200 Subject: [PATCH] build-package: catch non-existant repo index --- data/build-package.download | 1 + 1 file changed, 1 insertion(+) diff --git a/data/build-package.download b/data/build-package.download index 9822adf..cf1a3a6 100644 --- a/data/build-package.download +++ b/data/build-package.download @@ -21,6 +21,7 @@ done index_update_required () { INDEX_FILE=${1} + test ! -f ${INDEX_FILE} && return 0 test $(stat --format=%Y ${INDEX_FILE}) -le $(($(date +%s) - 3600)) && return 0 test $(file -b ${INDEX_FILE}) == "empty" && return 0