summaryrefslogtreecommitdiff
path: root/python/rpm/__init__.py
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-09-28 16:37:14 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-09-28 16:37:14 +0300
commitf74def684253964fa03edb55f155dfbb5122b1bf (patch)
tree6dd5051911852612203dd1859172d1ebe1f11307 /python/rpm/__init__.py
parentdca55d3781401eb0ddce2759770054db7629083a (diff)
downloadlibrpm-tizen-f74def684253964fa03edb55f155dfbb5122b1bf.tar.gz
librpm-tizen-f74def684253964fa03edb55f155dfbb5122b1bf.tar.bz2
librpm-tizen-f74def684253964fa03edb55f155dfbb5122b1bf.zip
Push rpm.signalsCaught() to python level
- only implement the bare minimum in C by adding a thin wrapper for rpmsqIsCaught(), the rest can easily be done in python
Diffstat (limited to 'python/rpm/__init__.py')
-rw-r--r--python/rpm/__init__.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/python/rpm/__init__.py b/python/rpm/__init__.py
index ca501c6bd..de0f6838c 100644
--- a/python/rpm/__init__.py
+++ b/python/rpm/__init__.py
@@ -54,3 +54,11 @@ def readHeaderFromFD(fd):
offset = None
return (h, offset)
+
+def signalsCaught(siglist):
+ caught = []
+ for sig in siglist:
+ if signalCaught(sig):
+ caught.append(sig)
+
+ return caught