repo.or.cz
/
koha.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bug 11395: Add a batch record modification
[koha.git]
/
debian
/
bd-to-depends
blob
ce8809bb8e2142e5559cb4344ff030667d201782
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
)