On Wed, 24 Jul 2013 09:18:13 +0200
Michał Górny <mgo...@gentoo.org> wrote:

> Pacho requested that to be able to warn users in GNOME packages that
> do not work anymore without systemd.
>
> +# @FUNCTION: systemd_is_booted
> +# @DESCRIPTION:
> +# Check whether the system was booted using systemd.

Can we have a short mention of that kind of usage in the description?

There is some set of possible wrong usages, some of which are nasty,
that this function should not be used for; for example, someone could
use this as a check to install a file which I believe isn't permitted.

Are there even other legit usages your original function would permit?

Alternatively, you could change the function altogether into something
more specific; eg. ewarn_systemd_boot and ewarn_no_systemd_boot.

These functions would then take a message as parameter; then the
resulting behavior of this function is in your hands, not the consumer.

-- 
With kind regards,

Tom Wijsman (TomWij)
Gentoo Developer

E-mail address  : tom...@gentoo.org
GPG Public Key  : 6D34E57D
GPG Fingerprint : C165 AF18 AB4C 400B C3D2  ABF0 95B2 1FCD 6D34 E57D

Attachment: signature.asc
Description: PGP signature

Reply via email to