[Ovirt-devel] [PATCH node-image] add virt-preview YUM repository
Alan Pevec
apevec at redhat.com
Wed Jul 1 00:19:16 UTC 2009
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
More information about the ovirt-devel
mailing list