projects
/
koha.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Bug 3462: Links in authorities should be hyperlinks
[koha.git]
/
debian
/
bd-to-depends
1
#!/usr/bin/python
2
3
import re
4
import debian.deb822
5
6
exclusions = [
7
'debhelper',
8
'python',
9
'python-debian',
10
]
11
12
exclusions = [re.compile(s) for s in exclusions]
13
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)