[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: non fedora-usermgmt user creation



On Wed, 2006-03-08 at 00:41 +0100, Enrico Scholz wrote:
> ville skytta iki fi (Ville Skyttä) writes:
> 
> >> | %pre
> >> | if test -x /usr/sbin/fedora-useradd; then
> >> |    /usr/sbin/fedora-useradd ...
> >> | else
> >> |    /usr/sbin/useradd ...
> >> | fi
> >> 
> >> with current fedora-usermgmt.
> >
> > Yes?  That's the functionality I suggested, just expressed with a
> > different shell syntax.  Combine something like the above and again,
> > _no_ dependencies on fedora-usermgmt in packages and I'm satisfied.
> 
> 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?
With a dependency on fedora-usermgmt, it will always evaluate to true
and the "else" branch is dead code.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]