Message ID | f27834a4-9265-2cda-f77e-7051d3322b71@suse.de (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
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());
Fix support for: Version: <id> with multiple spaces Signed-off-by: Nicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.com> --- buildlib/cbuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)