Fix support for: Version: <id> with multiple spaces Signed-off-by: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@xxxxxxxx> --- buildlib/cbuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildlib/cbuild b/buildlib/cbuild index 888fae6c..efc039bf 100755 --- a/buildlib/cbuild +++ b/buildlib/cbuild @@ -407,11 +407,11 @@ def run_rpm_build(args,spec_file,env): with open(spec_file,"r") as F: for ln in F: if ln.startswith("Version:"): - ver = ln.strip().partition(' ')[2]; + ver = ln.strip().partition(' ')[2].strip(); assert(ver == get_version()); if ln.startswith("Source:"): - tarfn = ln.strip().partition(' ')[2]; + tarfn = ln.strip().partition(' ')[2].strip(); tarfn = tarfn.replace("%{version}",version); image_id = get_image_id(args,env.image_name()); -- 2.14.0.rc1.4.gab083fa77.dirty -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html