[Rpm-maint] [rpm-software-management/rpm] Fix "No patch/source number X" not returning an error code regression (PR #4083)

Panu Matilainen notifications at github.com
Fri Jan 9 10:13:38 UTC 2026


Commit 7639512c5db244360db09af43cdd0ce4d43fa8e5 neglected to convert source/patch lookup errors to macro buffer errors, causing the error return from doPatch() and doUntar() getting lost.

This has an effect on the error message as well, as the macro system additionally reports the file name and line number. Update the test expectations to match.

Fixes: #4079
You can view, comment on, or merge this pull request online at:

  https://github.com/rpm-software-management/rpm/pull/4083

-- Commit Summary --

  * Add tests for missing patch/source errors in %prep
  * Fix "No patch/source number X" not returning an error code regression

-- File Changes --

    M build/parsePrep.cc (18)
    M tests/rpmbuild.at (29)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/4083.patch
https://github.com/rpm-software-management/rpm/pull/4083.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/4083
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/pull/4083 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20260109/59de5a5a/attachment.htm>


More information about the Rpm-maint mailing list