[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] Add --archlist to repoquery call.



This is necessary for composing ppc, where the compose is done on ppc, but we
want to find a ppc64 kernel.  By default, repoquery won't return results that
don't match the running arch.
---
 scripts/mk-images |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/scripts/mk-images b/scripts/mk-images
index 8b914bb..18ee9d0 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -215,7 +215,7 @@ INITRDMODS="$USBMODS $FIREWIREMODS $IDEMODS $SCSIMODS $FSMODS $LVMMODS $RAIDMODS
 findPackage() {
     name=$1
 
-    pkg=$(repoquery --qf "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}" -c $yumconf $name.$KERNELARCH)
+    pkg=$(repoquery --qf "%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}" -c $yumconf --archlist=$KERNELARCH $name.$KERNELARCH)
     if [ -n "$pkg" ]; then
 	echo $pkg
 	return
-- 
1.5.4.3


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]