don't set default repo inside vm
authorLudwig Nussel <ludwig.nussel@suse.de>
Mon, 31 May 2010 12:12:29 +0000 (14:12 +0200)
committerLudwig Nussel <ludwig.nussel@suse.de>
Fri, 25 Jun 2010 10:08:34 +0000 (12:08 +0200)
build

diff --git a/build b/build
index 8631190..af6c80e 100755 (executable)
--- a/build
+++ b/build
@@ -1058,7 +1058,7 @@ if [ "$VM_TYPE" = 'qemu' ]; then
     qemu_rootdev=/dev/sda
 fi
 
-if [ -z "$RPMLIST" ]; then
+if [ -z "$RPMLIST" -a -z "$RUNNING_IN_VM" ]; then
     if [ -z "$repos" -a -z "$BUILD_RPMS" ]; then
        repos=(--repository 'zypp://')
     fi