summaryrefslogtreecommitdiff
path: root/whatmaps
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2010-09-23 20:00:21 +0200
committerGuido Günther <agx@sigxcpu.org>2010-09-23 20:00:21 +0200
commit4d2d6eb2c0fc4c3eeb879ef0153f068f9e9881ec (patch)
tree5d1699e804278882938d397cd44208b406b1772d /whatmaps
parentcb2f19fb248792db25d845e5bf0c27972e0c3ff2 (diff)
Better init script re
Diffstat (limited to 'whatmaps')
-rwxr-xr-xwhatmaps4
1 files changed, 2 insertions, 2 deletions
diff --git a/whatmaps b/whatmaps
index 0fa53d2..45d2ab6 100755
--- a/whatmaps
+++ b/whatmaps
@@ -135,7 +135,7 @@ class DebianDistro(Distro):
class DebianPkg(Pkg):
type = 'Debian'
- _init_script_re = re.compile('/etc/init.d/[a-zA-Z0-9]')
+ _init_script_re = re.compile('/etc/init.d/[\w\-\.]')
_list_contents = "dpkg-query -L %s 2>/dev/null"
def __init__(self, name):
@@ -203,7 +203,7 @@ class FedoraDistro(RedHatDistro):
class RpmPkg(Pkg):
type = 'RPM'
- _init_script_re = re.compile('/etc/rc.d/init.d/[a-zA-Z0-9]')
+ _init_script_re = re.compile('/etc/init.d/[\w\-\.]')
_list_contents = "rpm -ql %s 2>/dev/null"
def __init__(self, name):