projects.py: Add -dev as a possible package suffix

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2019-12-08 10:39:55 +00:00
commit 3ce6eac53f

View file

@ -163,7 +163,7 @@ class Projects(object):
return r return r
def strip_module_from_spec(self, mod): def strip_module_from_spec(self, mod):
return re.sub(r'-devel$|-run$', '', re.split('([=><]+)', mod)[0].strip()) return re.sub(r'-dev$|-devel$|-run$', '', re.split('([=><]+)', mod)[0].strip())
def get_section(self, path, section): def get_section(self, path, section):
r = '' r = ''