1
0
mirror of synced 2026-04-14 23:37:56 +00:00

isAPT: Also check for dpkg and rename it to isDeb

That way we should not try to use Debian/Ubuntu package names if
apt4rpm is available.
This commit is contained in:
Axel Beckert
2013-01-23 17:47:13 +01:00
parent 0c8b5d25c4
commit 505950dae0

View File

@@ -227,7 +227,7 @@ installCentOS4Package () { installRPMPackage "$@" }
#
# Functions to test if we're on a redhatesk or debianesk system
#
isAPT() ( [ -x $1/usr/bin/apt-get ] )
isDeb() ( [ -x $1/usr/bin/apt-get -a -x $1/usr/bin/dpkg ] )
isYum() ( [ -x $1/usr/bin/yum ] )
@@ -239,7 +239,7 @@ installPackage ()
prefix=$1
package=$2
if isAPT ; then
if isDeb ; then
installDebianPackage "$@"
elif isYum ; then