summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2010-05-11 10:01:42 +0000
committerramon <ramongomez@us.es>2010-05-11 10:01:42 +0000
commit6354c7bc52010911cd9e1e590068c049ea158878 (patch)
treedce410318d0d7ecd758bea013f94d075fdd0c680 /installer
parent8826968e1b701f4a19882420b5352226baf07560 (diff)
Instalador detecta correctamente dependencias no instaladas; mejora en rendimiento descarga de paquetes udeb.
git-svn-id: https://opengnsys.es/svn/trunk@925 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/opengnsys_installer.sh2
-rwxr-xr-xinstaller/opengnsys_update.sh3
2 files changed, 3 insertions, 2 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh
index cbffe251..049ded22 100755
--- a/installer/opengnsys_installer.sh
+++ b/installer/opengnsys_installer.sh
@@ -111,7 +111,7 @@ function checkPackage()
exit 1
fi
echoAndLog "checkPackage(): checking if package $package exists"
- dpkg -L $package &>/dev/null
+ dpkg -s $package | grep Status | grep -qw install &>/dev/null
if [ $? -eq 0 ]; then
echoAndLog "checkPackage(): package $package exists"
return 0
diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh
index a8db24c8..165206ce 100755
--- a/installer/opengnsys_update.sh
+++ b/installer/opengnsys_update.sh
@@ -119,7 +119,8 @@ function installDependencies ()
echoAndLog "${FUNCNAME}(): no deps needed."
else
while [ $# -gt 0 ]; do
- if ! dpkg -s $1 &>/dev/null; then
+ dpkg -s $1 | grep Status | grep -qw install &>/dev/null
+ if [ $? -ne 0 ]; then
INSTALLDEPS="$INSTALLDEPS $1"
fi
shift