[systemd-devel] [PATCH] systemctl: print unit package in status

Cameron Norman camerontnorman at gmail.com
Thu Dec 18 08:54:07 PST 2014


On Thu, Dec 18, 2014 at 8:35 AM, Reindl Harald <h.reindl at thelounge.net> wrote:
>
> Am 18.12.2014 um 17:19 schrieb Spencer Baugh:
>>
>> Quoting J├│hann B. Gu├░mundsson (2014-12-18 04:08:32)
>>>
>>>
>>> On 12/18/2014 04:00 AM, Spencer Baugh wrote:
>>>>
>>>> When printing the status of a unit, open a connection to the session bus
>>>> and query PackageKit for the package that the unit file belongs
>>>> to. Print it if PackageKit knows.
>>>
>>>
>>> There are gazillion package manager in the wild
>>
>>
>> PackageKit is a generic interface to the local package manager, used
>> by all the major distros and desktop environments. It's installed by
>> default on any normal desktop/laptop. So this is different from
>> hardcoding a call out to yum or apt
>
>
> please when do so *silently* fall back to ignore it on systems where
> PackageKit is removed by intention, that's what frequently is done on
> machines of users deploy servers and their own workstations and operate
> exclusively with YUM or DNF
>
> in short: don't make it another log-flood candidate

The patch takes that into account:

       /* we frequently can't get the user bus, nor call PackageKit,
so don't complain on error */

--
Cameron Norman


More information about the systemd-devel mailing list