projects
/
koha.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
merged from upstream master
[koha.git]
/
debian
/
bd-to-depends
1
#!/usr/bin/python
2
3
import re
4
import debian.deb822
5
6
exclusions = [
7
'debhelper',
8
]
9
10
exclusions = [re.compile(s) for s in exclusions]
11
12
depstring = debian.deb822.Deb822(file('debian/control')).get('Build-Depends')
13
deps = [s.strip() for s in depstring.split(',')]
14
result = []
15
for dep in deps:
16
for ex in exclusions:
17
if ex.match(dep):
18
break
19
else:
20
result.append(dep)
21
print 'koha:Depends=%s' % ', '.join(result)