[packages/fedmsg-notify] setup distro_specific/_pld
glen
glen at pld-linux.org
Wed Nov 11 21:01:57 CET 2015
commit e25a3641a3b0fe3dc0d5e0af97c6c692d7696d3e
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Nov 11 22:01:35 2015 +0200
setup distro_specific/_pld
_pld.py | 22 ++++++++++++++++++++++
fedmsg-notify.spec | 5 +++--
2 files changed, 25 insertions(+), 2 deletions(-)
---
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 .
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 <glen at pld-linux.org>
+
+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()
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/fedmsg-notify.git/commitdiff/e25a3641a3b0fe3dc0d5e0af97c6c692d7696d3e
More information about the pld-cvs-commit
mailing list