support both internal and external packagemanagement
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 18 Mar 2004 05:32:03 +0000 (05:32 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Thu, 18 Mar 2004 05:32:03 +0000 (05:32 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@1297 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/scripts/vapt-get

index fa0080a..012c7fe 100755 (executable)
@@ -71,8 +71,13 @@ cnt=0
 res=255
 for i in "${vservers[@]}"; do
     cnt=$[ cnt + 1 ]
-    callInNamespace "$i" \
-       "$_VNAMESPACE" --new -- "$_VAPT_GET_WORKER" "$i" "$@"
+
+    if pkgmgmt.isInternal "$i"; then
+       $_VSERVER "$i" exec apt-get "$@"
+    else
+       callInNamespace "$i" \
+           "$_VNAMESPACE" --new -- "$_VAPT_GET_WORKER" "$i" "$@"
+    fi
     res=$?
 done