[packages/pldnotify/py: 1/2] skeleton for python version of pldnotify

glen glen at pld-linux.org
Tue Nov 3 22:49:49 CET 2015


commit 1ad5b935b2447ace56e79dd7ccafbe6ab16d8648
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Nov 3 22:51:34 2015 +0200

    skeleton for python version of pldnotify

 pldnotify.py | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
---
diff --git a/pldnotify.py b/pldnotify.py
new file mode 100755
index 0000000..daecd33
--- /dev/null
+++ b/pldnotify.py
@@ -0,0 +1,29 @@
+#!/usr/bin/python
+
+import argparse
+import collections
+import os
+import rpm
+import shlex
+import subprocess
+import sys
+
+def check_package(package):
+    print package
+
+def main():
+    parser = argparse.ArgumentParser(description='PLD-Notify: project to monitor upstream releases.')
+    parser.add_argument('-d', '--debug',
+        action='store_true',
+        help='Enable debugging (default: %(default)s)')
+    parser.add_argument('package',
+        type=str,
+        help='Package to check')
+        
+    args = parser.parse_args()
+    check_package(args.package)
+
+if __name__ == '__main__':
+    main()
+
+# vi: encoding=utf-8 ts=8 sts=4 sw=4 et
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pldnotify.git/commitdiff/28c1c9e596748c147b0720de148647fc2f85c280



More information about the pld-cvs-commit mailing list