From f2ef760caa2d0ced7fc8b6be50a2c29eae20f344 Mon Sep 17 00:00:00 2001
From: Jesse Andrews <anotherjesse@gmail.com>
Date: Sun, 11 Sep 2011 16:23:21 -0700
Subject: [PATCH] don't filter \# pips as they mean something, also it seems
 just libvirt-bin is the issue

---
 build.sh | 6 +++---
 stack.sh | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/build.sh b/build.sh
index 5fcfe17770..f6d287de93 100755
--- a/build.sh
+++ b/build.sh
@@ -9,12 +9,12 @@ DEST="/nfs/$NAME"
 rm -rf $DEST
 
 # build a proto image - natty + packages that will install (optimization)
-if [ ! -d nfs ]; then
+if [ ! -d proto ]; then
     debootstrap natty proto
     cp sources.list proto/etc/apt/sources.list
     chroot proto apt-get update
-    chroot proto apt-get install -y `cat apts/* | cut -d\# -f1 | egrep -v "(rabbitmq|libvirt)"`
-    chroot proto pip install `cat pips/* | cut -d\# -f1`
+    chroot proto apt-get install -y `cat apts/* | cut -d\# -f1 | egrep -v "(rabbitmq|libvirt-bin)"`
+    chroot proto pip install `cat pips/*`
     git clone https://github.com/cloudbuilders/nova.git proto/opt/nova
     git clone https://github.com/cloudbuilders/openstackx.git proto/opt/openstackx
     git clone https://github.com/cloudbuilders/noVNC.git proto/opt/noVNC
diff --git a/stack.sh b/stack.sh
index a6d14c6585..c278701ca8 100755
--- a/stack.sh
+++ b/stack.sh
@@ -54,10 +54,10 @@ function clone_or_up {
 # You should only have to run this once
 if [ "$CMD" == "install" ]; then
     # install apt requirements
-    apt-get install -y -q `cat $DIR/apts/*`
+    apt-get install -y -q `cat $DIR/apts/* | cut -d\# -f1`
 
     # install python requirements
-    pip install -r $DIR/pips/dash
+    pip install `cat $DIR/pips/*`
 
     # TODO: kill openstackx
     clone_or_up https://github.com/cloudbuilders/nova.git $NOVA_DIR