diff options
author | Jonathan Bauer | 2013-04-04 15:27:04 +0200 |
---|---|---|
committer | sr | 2013-04-12 19:11:40 +0200 |
commit | 3c7b31ce3d15685ee95094c40d92f956aac23177 (patch) | |
tree | 446a64d9035ee4b6eb85f88681bcb41326eddfb0 /helper/fileutil.inc | |
parent | add xfsprogs under REQUIRED_DEPENDENCIES for xfs support (diff) | |
download | tm-scripts-3c7b31ce3d15685ee95094c40d92f956aac23177.tar.gz tm-scripts-3c7b31ce3d15685ee95094c40d92f956aac23177.tar.xz tm-scripts-3c7b31ce3d15685ee95094c40d92f956aac23177.zip |
remove check if packet is already installed
Diffstat (limited to 'helper/fileutil.inc')
-rw-r--r-- | helper/fileutil.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/helper/fileutil.inc b/helper/fileutil.inc index 18f1db4e..3f39ad63 100644 --- a/helper/fileutil.inc +++ b/helper/fileutil.inc @@ -65,8 +65,8 @@ list_packet_files() { install_dependencies() { [ -z "$REQUIRED_DEPENDENCIES" ] && return if [ "$PACKET_MANAGER" = "apt" ]; then - # install package, only if not already installed - dpkg -l $(echo $(echo "$REQUIRED_DEPENDENCIES")) &> /dev/null && return + # install package, only if not already installed, TODO fix me + #dpkg -l $(echo $(echo "$REQUIRED_DEPENDENCIES")) &> /dev/null && return apt-get install -y $REQUIRED_DEPENDENCIES || perror "Could not apt-get install $REQUIRED_DEPENDENCIES" elif [ "$PACKET_MANAGER" = "zypper" ]; then zypper --no-refresh install -y -n $REQUIRED_DEPENDENCIES || perror "Could not zypper install $REQUIRED_DEPENDENCIES" |