rpm: support conditionals in patch-export
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Mon, 25 Feb 2013 10:11:14 +0000 (12:11 +0200)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 14 Nov 2014 12:46:23 +0000 (14:46 +0200)
commitef44e8eaa2b7d75c5535e6b67d8d8a6e9307a376
tree626b943de25c452869e6dd5799704fa6ee83274e
parent13ceef51e8fe07831a93851a885a34856f858f70
rpm: support conditionals in patch-export

One can now define conditional patches that are enclosed in '%if' or
'%ifarch' when the spec file is updated. One can do this by defining
'Gbp-Rpm-If: <conditional>' and 'Gbp-Rpm-IfArch: <conditional>' in the
commit message.

Only one conditional per patch is supported, i.e. you cannot define
'IfArch' and 'If' for the same patch.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/scripts/pq_rpm.py