diff options
| -rw-r--r-- | helper/fileutil.inc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/helper/fileutil.inc b/helper/fileutil.inc index 1a5befbd..3bfe374c 100644 --- a/helper/fileutil.inc +++ b/helper/fileutil.inc @@ -32,7 +32,7 @@ tarcopy () { # get all files of required packages by a module list_packet_files() { - [ -z "$REQUIRED_PACKAGES" ] && return + [ -z "$REQUIRED_PACKAGES" ] && pinfo "No required packages for $TOOL" && return 1 for PACKAGE in $REQUIRED_PACKAGES; do local FILES="" if [ "$PACKET_MANAGER" = "apt" ]; then @@ -45,8 +45,8 @@ list_packet_files() { #FILES=$(echo "$FILES" | sed 's/^\(.*\):###:[0-9]*$/\1/g') local LPRET=$(echo "$FILES" | awk -F ':###:' '{printf $2}') FILES=$(echo "$FILES" | awk -F ':###:' '{print $1}') - [ "x$LPRET" != "x0" ] && perror "list_packet_files exited with code '$LPRET' for packet ${PACKAGE}." - [ -z "$FILES" ] && perror "list_packet_files empty for packet ${PACKAGE}." + [ "x$LPRET" != "x0" ] && pwarning "list_packet_files exited with code '$LPRET' for packet ${PACKAGE}." + [ -z "$FILES" ] && pwarning "list_packet_files empty for packet ${PACKAGE}." for FILE in $FILES; do [ ! -d "$FILE" ] && echo "$FILE" done |
