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

util-vserver/scripts/vrpm

index f4c9afb..daaaad2 100755 (executable)
@@ -76,8 +76,14 @@ cnt=0
 res=255
 for i in "${vservers[@]}"; do
     cnt=$[ cnt + 1 ]
-    callInNamespace "$i" \
-       "$_VNAMESPACE" --new -- "$_VRPM_WORKER" "$i" "$@"
+
+    if pkgmgmt.isInternal "$i"; then
+       $_VSERVER "$i" exec rpm "$@"
+    else
+       callInNamespace "$i" \
+           "$_VNAMESPACE" --new -- "$_VRPM_WORKER" "$i" "$@"
+    fi
+
     res=$?
 done