[PATCH] Add --archlist to repoquery call.

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

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux