#574 Pass sourcedir to rpmspec when specfile is parsed
Merged by onosek. Opened by oturpe.
oturpe/rpkg fix-specfile-parse-fail  into  master

Download 574.patch

In many cases, specfile parsing in class SpecFile failed
when the specfile contained local sources
like Source2: local.txt.
This happened because rpm sourcedir configuration
was not passed to utilityrpmspec used for parsing,
leading it to default to ~/rpmbuild/SOURCES,
which is not correct for many layouts supported by rpkg.
Fixed by passing sourcedir correctly.

Signed-off-by: Otto Urpelainen oturpe@iki.fi

Do you think test case TestSources at test_cli.py should be extended
so that it would catch this problem?

Thanks for the quick reaction, @oturpe
This looks good as it is.

Commit e0bf1381 fixes this pull-request

Pull-Request has been merged by onosek

Metadata