summaryrefslogtreecommitdiff
path: root/installplatform
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-09-07 12:09:11 +0300
committerPanu Matilainen <pmatilai@redhat.com>2007-09-07 12:09:11 +0300
commit6ea6e02bdfebe63be388b195a6e1fb1259ad0aae (patch)
treec84f53d99063f861dbb485938400adfb237c54f6 /installplatform
parent27bb6dedfcd510c3cc25e1f453e9d88d92d86acc (diff)
downloadlibrpm-tizen-6ea6e02bdfebe63be388b195a6e1fb1259ad0aae.tar.gz
librpm-tizen-6ea6e02bdfebe63be388b195a6e1fb1259ad0aae.tar.bz2
librpm-tizen-6ea6e02bdfebe63be388b195a6e1fb1259ad0aae.zip
Fix installplatform now that rpmrc no longer contains macrofiles
Diffstat (limited to 'installplatform')
-rwxr-xr-xinstallplatform3
1 files changed, 1 insertions, 2 deletions
diff --git a/installplatform b/installplatform
index 3198793d2..30f661a6c 100755
--- a/installplatform
+++ b/installplatform
@@ -16,10 +16,9 @@ fi
TEMPRC="/tmp/rpmrc.$$"
cat << E_O_F > $TEMPRC
include: $RPMRC
-macrofiles: $MACROS
E_O_F
-RPM="./rpm --rcfile $TEMPRC"
+RPM="./rpm --rcfile=$TEMPRC --macros=$MACROS"
canonarch_sed='s_i.86_i386_;s_pentium[34]_i386_;s_athlon_i386_;s_sparc[^-]*_sparc_;s_alpha[^-]*_alpha_;s_arm[^-]*_arm_;s_\(powerpc\|ppc\)[^-]*_ppc_'
arch="`$RPM --eval '%{_arch}'|sed -e "$canonarch_sed"`"