From 405a39d61ac90e763e7428d02447c6b977cad559 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Sat, 13 Dec 2014 11:05:25 -0500 Subject: [PATCH] Fix bug when fetching unavailable package --- functions/fpkg | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/functions/fpkg b/functions/fpkg index 133b123..673299b 100644 --- a/functions/fpkg +++ b/functions/fpkg @@ -640,10 +640,15 @@ fpkg() rm ${DEST_FILE} fi - if [ ! -f ${DEST_FILE} ]; then + if [ ! -f ${DEST_FILE} ]; then # Fetch package set +e static_getpkg ${SRC_FILENAME} ${URL} ${FILE_EXT} + rc=$? + + if [ ${rc} -ne 0 ]; then + return ${rc}; + fi set -e # Move file if source filename is not equal to package name and/or -- 2.20.1