The code would only raise an exception if TransactionSetCore.addErase()
returned an error, but the catch is that with many kinds of argument
types we'd silently skip the whole addition because no headers were found.

This looks to be a regression introduced some eleven years ago in
commit 9b20c706a4f93266450fae2f94007343b2e8fd9e.

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

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

-- Commit Summary --

  * Fix python ts.addErase() not raising exception on not-found packages

-- File Changes --

    M python/rpm/transaction.py (8)
    M tests/rpmpython.at (15)

-- Patch Links --

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

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1251
_______________________________________________
Rpm-maint mailing list
Rpm-maint@lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-maint

Reply via email to