diff options
author | Guido Günther <agx@sigxcpu.org> | 2010-09-23 20:00:21 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2010-09-23 20:00:21 +0200 |
commit | 4d2d6eb2c0fc4c3eeb879ef0153f068f9e9881ec (patch) | |
tree | 5d1699e804278882938d397cd44208b406b1772d /whatmaps | |
parent | cb2f19fb248792db25d845e5bf0c27972e0c3ff2 (diff) |
Better init script re
Diffstat (limited to 'whatmaps')
-rwxr-xr-x | whatmaps | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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): |