ville.skytta@xxxxxx (Ville Skyttä) writes: >> >> | %pre >> >> | if test -x /usr/sbin/fedora-useradd; then >> >> | /usr/sbin/fedora-useradd ... >> >> | else >> >> | /usr/sbin/useradd ... >> >> | fi >> >> Sorry, that's a point where I insist on: when a Fedora Extras package >> uses fedora-usermgmt, then it MUST have the corresponding 'Requires(...): >> fedora-usermgmt'. > > So what is the point of the "if" condition you suggested above then? Yes, you are right. It would be wrong to do the decision whether to call 'fedora-usermgmt' or plain 'useradd' at installation-time. The decision whether to use 'Requires: fedora-usermgmt' or not, happens at rpmbuild-time. At this time, the %scriptlets should be filled with either 'fedora-useradd' or 'useradd'. Enrico
Attachment:
pgpxgYkvYVIR3.pgp
Description: PGP signature
-- fedora-extras-list mailing list fedora-extras-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-extras-list