diff options
| author | Jonathan Bauer | 2013-03-01 18:17:24 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2013-03-01 18:17:24 +0100 |
| commit | a966ffebcc869f99e50d229d64b30b24c0a2bab9 (patch) | |
| tree | 596a3f532fa6726566c3cfcdb234403be4a30c68 | |
| parent | delete deprecated files (diff) | |
| download | tm-scripts-a966ffebcc869f99e50d229d64b30b24c0a2bab9.tar.gz tm-scripts-a966ffebcc869f99e50d229d64b30b24c0a2bab9.tar.xz tm-scripts-a966ffebcc869f99e50d229d64b30b24c0a2bab9.zip | |
change perror to pwarning if a package is not installed. TODO what if a package is missing?
| -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 |
