[Rpm-maint] [rpm-software-management/rpm] RFE: option for initial-only content in files (#152)

Vít Ondruch notifications at github.com
Fri Feb 10 08:28:07 UTC 2017


Just yesterday, I had usecase for this.

I am packaging updated Vagrant and there is used "plugin.json" file. We used to store it in ```%{_datadir}/vagrant/plugin.json``` and it used to be ghost file. But upstream changed some internals and now it is not possible to convince Vagrant to use the file at that location directly, but at the same time, the file needs to be modified when some vagrant- plugin package is installed.

So I thought _"let the file in ```%{datadir}``` and provide a link to the place where Vagrant thinks the file should be"_. But now it cannot be ghost file anymore, otherwise this would be dangling link. On the other hand, it is not really configuration file, since nobody should modify it manually.

For now, I am going with ```%config(noreplace)``` but ```%config(installonly)``` would be much better. Actually if it was ```%installonly``` without config, it would be much better.

-- 
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/issues/152#issuecomment-278885673
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20170210/65cdf8b3/attachment.html>


More information about the Rpm-maint mailing list