In rpm 4.8.1 (and 4.7.2 and probably other versions), if you call parseSpec() with force=1 (as python/spec-py.c is inclined to do), parsePrep.c's doPatch code always returns the empty string. This is because of this line in parsePrep.c:
/* On non-build parse's, file cannot be stat'd or read. */
if (spec->force
checkOwners(fn)) goto exit;
This code seems to be clearly not as intended. It should instead read:
if (!spec->force && checkOwners(fn)) goto exit;
This is really screwing up my ability to execute steps of rpmbuilding from python scripts.
Change History
Download in other formats:
|