X-Git-Url: http://gitweb.hugovil.com/?a=blobdiff_plain;f=functions%2Ffpkg;h=673299b339cf035014b87dd18285f0bce4cbdd4d;hb=81a6804d0ad8b589a12c2e02a434f528988ab02c;hp=133b12372e7103f58e99a74ecf7fa87db85a7ef1;hpb=91225b782d7c0309719e45df4c603e52d28d96d3;p=hvlinux.git 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