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

[Ovirt-devel] [PATCH ovirt-node-image] do not use empty variables



to avoid error: Macro %fedora_url has empty body

Signed-off-by: Alan Pevec <apevec redhat com>
---
 Makefile |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 60fa9b4..969fa04 100644
--- a/Makefile
+++ b/Makefile
@@ -4,10 +4,13 @@ all: rpms
 include release.mk
 
 # FEDORA_URL env var can be set to the root of a fedora mirror
+ifneq ($(FEDORA_URL),)
+RPM_FLAGS += --define "fedora_url $(FEDORA_URL)"
+endif
 # OVIRT_URL env var can be set to the root of an ovirt.org mirror
-RPM_FLAGS += \
-  --define "fedora_url $(FEDORA_URL)" \
-  --define "ovirt_url $(OVIRT_URL)"
+ifneq ($(OVIRT_URL),)
+RPM_FLAGS += --define "ovirt_url $(OVIRT_URL)"
+endif
 
 clean:
 	rm -rf $(pkg_name)-*
-- 
1.5.5.1


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