- trick rpm and yum into only installing en_US locale and no docs when
Mark Huang [Tue, 21 Jun 2005 19:09:53 +0000 (19:09 +0000)]
  using rpm --root or yum --installroot

build.sh

index 180ef20..4a7890c 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -68,6 +68,9 @@ function build_cdroot()
     echo "setup rpm to install only en_US locale and no docs"
     mkdir -p $CD_ROOT/etc/rpm
     cp -f $CONF_FILES_DIR/macros $CD_ROOT/etc/rpm
+    # trick rpm and yum
+    export HOME=$PWD
+    cp -f $CONF_FILES_DIR/macros $PWD/.rpmmacros
 
     echo "initialize rpm db"
     mkdir -p $CD_ROOT/var/lib/rpm