[Rpm-maint] [rpm-software-management/rpm] skip previous only when the current file is normal (PR #1853)
Einsler Lee
notifications at github.com
Wed Dec 8 07:34:03 UTC 2021
### Current behavior
#### 1. If rpm remove package files in this order: normal_file -> wrongcolor_file
normal_file will first be marked as FA_ERASE. When removing wrongcolor_file, rpm find the normal_file (with the same name) has been marked as FA_ERASE, then rpm will change the normal_file's action to FA_SKIP in `rpmfsSetAction(otherFs, otherFileNum, FA_SKIP);`. wrongcolor_file will also be marked as FA_SKIP later. So both two files's action will be FA_SKIP.
#### 2. If rpm remove package files in this order: wrongcolor_file -> normal_file
wrongcolor_file will be marked as FA_SKIP. When removing normal_file, rpm find the wrongcolor_file (with the same name) has been marked as FA_SKIP (not FA_ERASE), then rpm will change the normal_file's action to FA_SKIP. Eventually, both two files's action will be FA_SKIP too.
### With patches applied
#### 1. For the first scene
Only skip previous file when the current file is normal.
#### 2. For the second scene
Set wrongcolor_file's action to FA_SKIPCOLOR, and only skip the current file when the previous file's action is not FA_ERASE nor FA_SKIPCOLOR.
--
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/1853#issuecomment-988568230
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20211207/bdd7b89c/attachment.html>
More information about the Rpm-maint
mailing list