Le mer. 12 sept. 2018 à 19:15, Neal Gompa <ngomp...@gmail.com> a écrit : > > >> In Mageia, we eg had: > > >> 1) manual "requires(post)" or "requires(posttrans): info-install" > > >> (info-install being the package containing /sbin/ /sbin/install-info > > >> 2) plus manual %post or %posttrans calling install-info > > >> > > >> This was a manual process, so it was sometimes missed in some pkgs. > > > > > > > > > That's why Fedora switched to transfiletrigger. It is much better ;) > > > > But we still need the pkgs container the info files to require the > > needed /sbin/info-install > > > > >> We've replaced those manual requires+scriptlets by a filetrigger. > > >> But we still want info-install to be installed, so in order to replace > > >> the manual requires, we want to automatically emit the requires on > > >> info-install > > >> But we don't want to emit "requires: info-install", > > >> what we want really is "requires(posttrans): info-install" > > >> > > >> The patch enables to emit requires for scriptlets or filetriggers. > > > > > > > > > This is too specific use case I think.. > > > > That's an example but there could be more > > I think the idea usually is that the file trigger would not fire if > the package isn't installed, so forcing a dependency here means that > there was no benefit to separating it out to be run only when it was > needed. It basically makes it impossible to avoid running the trigger.
Which is exactly the point here: Again, here the policy was for all those pkgs to require info-install & run it in %post or %posttrans In order to ease packager work, we replaced this manual work by using a filetrigger. But we stil want info-isntall to be installed, hence this patch > In the case of info, there's no point in running the info commands if > info itself is not installed. You can't use them anyway. :) Again, info-install was manually required before, we just want to automate that. > That said, there may be a case where we might want this, so I'm not > completely ruling out its relevance. _______________________________________________ Rpm-maint mailing list Rpm-maint@lists.rpm.org http://lists.rpm.org/mailman/listinfo/rpm-maint