aboutsummaryrefslogtreecommitdiff
path: root/whatmaps/pkg.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-09-23 13:15:27 +0200
committerGuido Günther <agx@sigxcpu.org>2016-09-23 13:15:27 +0200
commit9ffc5cbb599ea3859804979f1570d17a5c0373a2 (patch)
tree8118b317885ac543c1399497bdf9643c8b887340 /whatmaps/pkg.py
parentead569ed946d5e7414ec4c328d4d8b2a6bb3009c (diff)
parent48651cda01095017ddc5e67a2491c02a44027ab5 (diff)
Merge tag 'v0.0.12' into debian/master
whatmaps v0.0.12
Diffstat (limited to 'whatmaps/pkg.py')
-rw-r--r--whatmaps/pkg.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/whatmaps/pkg.py b/whatmaps/pkg.py
index 4290d0b..7aafd5a 100644
--- a/whatmaps/pkg.py
+++ b/whatmaps/pkg.py
@@ -19,6 +19,7 @@ import re
import string
import subprocess
+
class PkgError(Exception):
pass
@@ -55,8 +56,8 @@ class Pkg(object):
if self._contents:
return self._contents
else:
- cmd = [ string.Template(arg).substitute(arg, pkg_name=self.name)
- for arg in self._list_contents ]
+ cmd = [string.Template(arg).substitute(arg, pkg_name=self.name)
+ for arg in self._list_contents]
list_contents = subprocess.Popen(cmd,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)