Alan Pevec
2009-Jul-01 00:19 UTC
[Ovirt-devel] [PATCH node-image] add virt-preview YUM repository
It exists only for the last Fedora release and contains recompiled
rawhide versions of libvirt and qemu
---
Makefile.am | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 7cf3213..a44ae49 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -29,6 +29,9 @@ CUR_RAWHIDE = 12
FEDORA = $(shell rpm --eval '%{fedora}')
ARCH = $(shell rpm --eval '%{_arch}')
+CUR_PREVIEW = 11
+PREVIEW_URL ?=
http://markmc.fedorapeople.org/virt-preview/f$(CUR_PREVIEW)/$(ARCH)
+
NVR = $(PACKAGE)-$(VERSION)-$(ARCH)
EXTRA_DIST = \
@@ -76,11 +79,14 @@ repos.ks:
FEDORA_REPO=f$(FEDORA) ;\
FEDORA_REPO_LOC="$(if
$(FEDORA_URL),--baseurl=$(FEDORA_URL)/releases/$(FEDORA)/Everything/${ARCH}/os,--mirrorlist=$(FEDORA_MIRROR)?repo=fedora-$(FEDORA)&arch=$(ARCH))"
;\
OVIRT_DISTRO=$(FEDORA) ;\
- UPDATE_REPO_LINE="repo --name=$${FEDORA_REPO}-updates $(if
$(FEDORA_URL),--baseurl=$(FEDORA_URL)/updates/$(FEDORA)/${ARCH},--mirrorlist=$(FEDORA_MIRROR)?repo=updates-released-f$(FEDORA)&arch=$(ARCH))"
;\
+ UPDATE_REPO_LINE="repo --name=$${FEDORA_REPO}-updates $(if
$(FEDORA_URL),--baseurl=$(FEDORA_URL)/updates/$(FEDORA)/${ARCH},--mirrorlist=$(FEDORA_MIRROR)?repo=updates-released-f$(FEDORA)&arch=$(ARCH))\n"
;\
+ if [ 0$(FEDORA) == 0$(CUR_PREVIEW) ]; then \
+ UPDATE_REPO_LINE="$${UPDATE_REPO_LINE}repo --name=preview
--baseurl=$(PREVIEW_URL)\n" ;\
+ fi ;\
fi ;\
echo "repo --name=$${FEDORA_REPO} $${FEDORA_REPO_LOC}" > $@
;\
echo "repo --name=ovirt-org
--baseurl=$(OVIRT_URL)/$${OVIRT_DISTRO}/$(ARCH)" >> $@ ;\
- echo "$${UPDATE_REPO_LINE}" >> $@ ;\
+ printf "$${UPDATE_REPO_LINE}" >> $@ ;\
echo "repo --name=ovirt-local --baseurl=$(OVIRT_LOCAL_REPO)"
>> $@ \
)
--
1.6.0.6
Perry Myers
2009-Jul-06 22:22 UTC
[Ovirt-devel] [PATCH node-image] add virt-preview YUM repository
On 06/30/2009 08:19 PM, Alan Pevec wrote:> It exists only for the last Fedora release and contains recompiled > rawhide versions of libvirt and qemuApplied this patch and it built node correctly and brought in latest rpms for qemu and libvirt. ACK Perry