Neal Gompa wrote:
> No such thing currently exists, because an equivalent to `dpkg-divert`
> does not exist in RPM.

You are probably aware of this, but for the other readers of this thread:

File triggers can be (ab)used to do something like that, though it's not as 
easy as running a `dpkg-divert` command, you have to build a dummy package 
with a file trigger that munges the file.

An example of what you can do with file triggers:
https://svn.calcforge.org/viewvc/kannolo/trunk/packages/kannolo-root-unlocker/kannolo-root-unlocker.spec?revision=270&view=markup

And you can actually even modify packaged files in place with file triggers. 
I opted against doing that in kannolo-root-unlocker because it has some 
drawbacks (produces errors in rpm -V and makes delta RPMs not apply), which 
do however not apply if the files being munged by the file trigger are 
marked %config in the package actually owning them.

        Kevin Kofler
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/T6K6VAVHHXFFJNOIP3DDAHT4WS4A63X2/

Reply via email to