summaryrefslogtreecommitdiff
path: root/installplatform
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-05-31 17:39:01 +0000
committerjbj <devnull@localhost>2000-05-31 17:39:01 +0000
commit8e0b5929ee6c07b31deb7510b57b4c05c1adf9b4 (patch)
tree1fefa2823f5ce6147295f0b57bdbe499f4109d3c /installplatform
parenta09a109f60030873c7e61c13685361381d2e9812 (diff)
downloadrpm-8e0b5929ee6c07b31deb7510b57b4c05c1adf9b4.tar.gz
rpm-8e0b5929ee6c07b31deb7510b57b4c05c1adf9b4.tar.bz2
rpm-8e0b5929ee6c07b31deb7510b57b4c05c1adf9b4.zip
Duplicate query aliases onto rpmq.
CVS patchset: 3782 CVS date: 2000/05/31 17:39:01
Diffstat (limited to 'installplatform')
-rwxr-xr-xinstallplatform6
1 files changed, 4 insertions, 2 deletions
diff --git a/installplatform b/installplatform
index 2c55597da..f6a3816fb 100755
--- a/installplatform
+++ b/installplatform
@@ -23,11 +23,11 @@ target="`$RPM --eval '%{_target}'`"
case "$arch" in
i[3456]86) SUBSTS='s_i386_i386_ s_i386_i486_ s_i386_i586_ s_i386_i686_' ;;
- sparc*) SUBSTS='s_sparc64_sparc_ s_sparc\([^6]\)_sparc64\1_' ;;
+ sparc*) SUBSTS='s_sparc64_sparc_ s_sparc\([^6]\|$\)_sparc64\1_' ;;
*) SUBSTS=y___ ;;
esac
-for SUBST in $SUBSTS 's_^[^-]*-_noarch-_' ; do
+for SUBST in $SUBSTS ; do
ARCH=`echo $arch | sed -e $SUBST`
TARGET_PLATFORM=`echo $target_platform | sed -e $SUBST`
TARGET=`echo $target | sed -e $SUBST`
@@ -60,4 +60,6 @@ for SUBST in $SUBSTS 's_^[^-]*-_noarch-_' ; do
done
+ln -sf ${ARCH}-${VENDOR}-${OS} ${DESTDIR}/${pkglibdir}/noarch-${VENDOR}-${OS}
+
rm $TEMPRC