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

[Ovirt-devel] [PATCH ovirt-node-image] use rawhide repos for Fedora 10



for experimental builds, until it gets released

Signed-off-by: Alan Pevec <apevec redhat com>
---
 ovirt-node-image.spec.in |   25 ++++++++++++++++++-------
 1 files changed, 18 insertions(+), 7 deletions(-)

diff --git a/ovirt-node-image.spec.in b/ovirt-node-image.spec.in
index dbe8834..9772740 100644
--- a/ovirt-node-image.spec.in
+++ b/ovirt-node-image.spec.in
@@ -36,19 +36,30 @@ The PXE boot image for oVirt Node network boot from oVirt Server.
 %setup -q
 
 %build
-if [ -n "%{?fedora_url}" ]; then
-   cat > repos.ks << EOF
+%if 0%{?fedora} == 010
+# XXX current rawhide
+ %if "%{?fedora_url}" == ""
+cat > repos.ks << EOF
+repo --name=rawhide --baseurl=%{fedora_url}/development/%{_arch}/os
+EOF
+ %else
+cat > repos.ks << EOF
+repo --name=rawhide --mirrorlist=%{fedora_mirror}?repo=rawhide&arch=%{_arch}
+EOF
+ %endif
+%else
+ %if "%{?fedora_url}" == ""
+cat > repos.ks << EOF
 repo --name=f%{fedora} --baseurl=%{fedora_url}/releases/%{fedora}/Everything/%{_arch}/os
-repo --name=f%{fedora}-updates --baseurl=%{fedora_url}/updates/%{fedora}/%{_arch}
 repo --name=f%{fedora}-updates-newkey --baseurl=%{fedora_url}/updates/%{fedora}/%{_arch}.newkey
 EOF
-else
-  cat > repos.ks << EOF
+ %else
+cat > repos.ks << EOF
 repo --name=f%{fedora} --mirrorlist=%{fedora_mirror}?repo=fedora-%{fedora}&arch=%{_arch}
-repo --name=f%{fedora}-updates --mirrorlist=%{fedora_mirror}?repo=updates-released-f%{fedora}&arch=%{_arch}
 repo --name=f%{fedora}-updates-newkey --mirrorlist=%{fedora_mirror}?repo=updates-released-f%{fedora}.newkey&arch=%{_arch}
 EOF
-fi
+ %endif
+%endif
 
 cat >> repos.ks << EOF
 repo --name=ovirt-org --baseurl=%{ovirt_url}/%{fedora}/%{_arch}
-- 
1.5.5.1


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