summaryrefslogtreecommitdiffstats
path: root/helper/fileutil.inc
diff options
context:
space:
mode:
authorJonathan Bauer2013-04-04 18:59:56 +0200
committersr2013-04-12 19:11:40 +0200
commit77ba0e4548f35838babe8a31c8165f1af9ed0239 (patch)
treebfbef92e677a7c7d8d24899082ad80e25581dc26 /helper/fileutil.inc
parentremove check if packet is already installed (diff)
downloadtm-scripts-77ba0e4548f35838babe8a31c8165f1af9ed0239.tar.gz
tm-scripts-77ba0e4548f35838babe8a31c8165f1af9ed0239.tar.xz
tm-scripts-77ba0e4548f35838babe8a31c8165f1af9ed0239.zip
commit
Diffstat (limited to 'helper/fileutil.inc')
-rw-r--r--helper/fileutil.inc2
1 files changed, 0 insertions, 2 deletions
diff --git a/helper/fileutil.inc b/helper/fileutil.inc
index 3f39ad63..76293bfb 100644
--- a/helper/fileutil.inc
+++ b/helper/fileutil.inc
@@ -39,13 +39,11 @@ list_packet_files() {
local OPTIONAL="$(echo "$PACKAGE" | cut -c 1)"
[ "x$OPTIONAL" = "x@" ] && PACKAGE="$(echo "$PACKAGE" | cut -c 2-)"
local FILES=""
- pdebug "Listingh packiet $PACKAGE"
if [ "$PACKET_MANAGER" = "apt" ]; then
FILES="$(dpkg -L "$PACKAGE" | grep -v -E 'share/(man|doc)|/var/run|/var/log'; echo ":###:${PIPESTATUS[0]}")"
elif [ "$PACKET_MANAGER" = "zypper" ]; then
FILES="$(rpm -ql "$PACKAGE" | grep -v -E 'share/(doc|man)|/var/run|/var/log' | grep -v share/man; echo ":###:${PIPESTATUS[0]}")"
fi
- pdebug "Habe $(echo $FILES | wc -l) files!1"
# ugly hack to get our return value
#local LPRET=$(echo "$FILES" | tail -1 | sed 's/^.*:###:\([0-9]*\)$/\1/g')
#FILES=$(echo "$FILES" | sed 's/^\(.*\):###:[0-9]*$/\1/g')