[lvm-devel] master - spec: Do not treat --with-?=none as having the thing.

Petr Rockai mornfall at fedoraproject.org
Fri Feb 28 10:26:03 UTC 2014


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=4d081f072fe5b6f96112196fbb52a9b5cda21c55
Commit:        4d081f072fe5b6f96112196fbb52a9b5cda21c55
Parent:        581eeaf9502a530351a6894ce6d8f6930711e0b2
Author:        Petr Rockai <prockai at redhat.com>
AuthorDate:    Tue Dec 17 10:14:28 2013 +0100
Committer:     Petr Rockai <me at mornfall.net>
CommitterDate: Fri Feb 28 11:23:51 2014 +0100

spec: Do not treat --with-?=none as having the thing.

---
 spec/macros.inc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/spec/macros.inc b/spec/macros.inc
index 4041086..7b841dd 100644
--- a/spec/macros.inc
+++ b/spec/macros.inc
@@ -18,7 +18,7 @@
 
 %define with() \
 %global configure_flags %(echo -n "%{?configure_flags} " | sed -e "s,--with-%1=[^ ]*,,"; test -n "%{?2}" && echo --with-%1=%2) \
-%global with_flags %(echo -n "%{?with_flags} " | sed -e "s,%1,,"; test -n "%{?2}" && echo %1)
+%global with_flags %(echo -n "%{?with_flags} " | sed -e "s,%1,,"; test -n "%{?2}" && test "%{?2}" != none && echo %1)
 
 %global services monitor
 %define service() \




More information about the lvm-devel mailing list