[Rpm-maint] [rpm-software-management/rpm] Add pre-flight check for erased packages too (#1250)

Panu Matilainen notifications at github.com
Tue Jun 2 13:06:39 UTC 2020


This essentially adds a check ensuring removed packages still exist when we're about to commit to the transaction, ie that nobody removed the package while we were enjoying the view.
    
RPMPROB_PKG_INSTALLED is (ab)used for the purpose here - it's related to the package install status anyhow and adding a separate value would be just a whole bunch of boilerplate code, but I suppose I could be conviced otherwise too.

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

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

-- Commit Summary --

  * Refactor pre-flight checks for added packages to helper function
  * Add a pre-flight check for removed packages too

-- File Changes --

    M lib/rpmprob.c (5)
    M lib/transaction.c (116)

-- Patch Links --

https://github.com/rpm-software-management/rpm/pull/1250.patch
https://github.com/rpm-software-management/rpm/pull/1250.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/1250
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200602/1d53d357/attachment.html>


More information about the Rpm-maint mailing list