Bug 7213 - simple /svc/ HTTP example
[koha.git] / debian / bd-to-depends
blobce8809bb8e2142e5559cb4344ff030667d201782
1 #!/usr/bin/python
3 import re
4 import debian.deb822
6 exclusions = [
7 'debhelper',
8 'python',
9 'python-debian',
12 exclusions = [re.compile(s) for s in exclusions]
14 depstring = debian.deb822.Deb822(file('debian/control')).get('Build-Depends')
15 deps = [s.strip() for s in depstring.split(',')]
16 result = []
17 for dep in deps:
18 for ex in exclusions:
19 if ex.match(dep):
20 break
21 else:
22 result.append(dep)
23 print 'koha:Depends=%s' % ', '.join(result)