From a69d86a1b91b26852b50048b1870a18676dd8137 Mon Sep 17 00:00:00 2001
From: Brett Parker <arch@sommitrealweird.co.uk>
Date: Sat, 14 Jul 2007 09:22:12 +0000
Subject: [PATCH] Add better support for ix86

* Add expansion to i686 and below to get all versions
  below it.
git-archimport-id: arch@sommitrealweird.co.uk--2005-desktop/rpmbased-dist-chroot--mainline--0.1--patch-3
---
 rpmbased-dist-chroot.sh | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/rpmbased-dist-chroot.sh b/rpmbased-dist-chroot.sh
index 268fd4f..7fd9a19 100755
--- a/rpmbased-dist-chroot.sh
+++ b/rpmbased-dist-chroot.sh
@@ -31,6 +31,18 @@ ourcachedirectory=$(mktemp -d)
 architecture=$(uname -m)
 export ARCH=$architecture
 
+case $architecture in
+	i686)
+		architecture="i686,i586,i486,i386"
+		;;
+	i586)
+		architecture="i586,i486,i386"
+		;;
+	i486)
+		architecture="i486,i386"
+		;;
+esac
+
 function displayHelp() {
 cat <<END
 Usage: $0 [options]
-- 
2.39.5