From e25a3641a3b0fe3dc0d5e0af97c6c692d7696d3e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 11 Nov 2015 22:01:35 +0200 Subject: [PATCH] setup distro_specific/_pld --- _pld.py | 22 ++++++++++++++++++++++ fedmsg-notify.spec | 5 +++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 _pld.py diff --git a/_pld.py b/_pld.py new file mode 100644 index 0000000..6940bfd --- /dev/null +++ b/_pld.py @@ -0,0 +1,22 @@ +# This file is a part of fedmsg-notify. +# +# Authors: Elan Ruusamäe + +import logging + +log = logging.getLogger('moksha.hub') + +def get_installed_packages(): + """Retrieve the packages installed on the system""" + return [] + +def get_user_packages(usernames): + """Retrieve the packages maintained by `usernames`""" + return [] + +def get_reported_bugs(): + """ + Not implemented on PLD Linux, just return empty set + """ + + return set() diff --git a/fedmsg-notify.spec b/fedmsg-notify.spec index f470742..f574e86 100644 --- a/fedmsg-notify.spec +++ b/fedmsg-notify.spec @@ -1,11 +1,12 @@ Summary: Fedmsg Desktop Notifications Name: fedmsg-notify Version: 0.5.5 -Release: 0.2 +Release: 0.3 License: GPL v3+ Group: X11/Applications/Networking Source0: https://github.com/fedora-infra/fedmsg-notify/archive/%{version}/%{name}-%{version}.tar.gz # Source0-md5: fc6fe17a2c385c99e0165df5b0a7560e +Source1: _pld.py Patch0: pld.patch URL: https://github.com/fedora-infra/fedmsg-notify BuildRequires: desktop-file-utils @@ -35,7 +36,7 @@ to enable/disable the service. %patch0 -p1 # install pld -touch fedmsg_notify/distro_specific/_pld.py +cp -p %{SOURCE1} fedmsg_notify/distro_specific # skip fedora and debian mv fedmsg_notify/distro_specific/_debian.py . mv fedmsg_notify/distro_specific/_fedora.py . -- 2.44.0