summaryrefslogtreecommitdiffstats
path: root/helper
diff options
context:
space:
mode:
authorJonathan Bauer2013-03-01 18:17:24 +0100
committerJonathan Bauer2013-03-01 18:17:24 +0100
commita966ffebcc869f99e50d229d64b30b24c0a2bab9 (patch)
tree596a3f532fa6726566c3cfcdb234403be4a30c68 /helper
parentdelete deprecated files (diff)
downloadtm-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?
Diffstat (limited to 'helper')
-rw-r--r--helper/fileutil.inc6
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