]> git.ipfire.org Git - thirdparty/libvirt.git/commit
spec: don't use chkconfig --list
authorEric Blake <eblake@redhat.com>
Tue, 6 Dec 2011 23:16:34 +0000 (16:16 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 8 Dec 2011 03:54:07 +0000 (20:54 -0700)
commitfea83dde7b7e0725e4353a2cc5b6e5c7c61cb294
treec7898dfb9ca3f59805d8fdab7a82a1666b726e8a
parentf59a94175796879e5d5f226a7818c04b8c0e67d2
spec: don't use chkconfig --list

https://bugzilla.redhat.com/show_bug.cgi?id=694403 reports that
the specfile is incorrectly checking for a running libvirt-guests
service.  For example,

$ LC_ALL=es_ES chkconfig --list libvirt-guests
libvirt-guests    0:desactivado  1:desactivado    2:desactivado     3:activo  4:activo  5:activo     6:desactivado

will fail to find 5:on, even though it is active.  But chkconfig
already has a mode where you can silently use the exit status to
check for an active service.

* libvirt.spec.in (%post): Use simpler chkconfig options, to avoid
issues with localization.
libvirt.spec.in