[Pkg-ocaml-maint-commits] [SCM] pkglab packaging branch, master, updated. debian/1.4.2-4-16-gb576ec3
Ralf Treinen
treinen at free.fr
Thu Aug 20 21:56:03 UTC 2009
The following commit has been merged in the master branch:
commit b576ec3be123938d9aff99ef89ddc18524860f56
Author: Ralf Treinen <treinen at free.fr>
Date: Thu Aug 20 23:06:01 2009 +0200
if the source package arch is a list then copy into the binary package
only the current architecture
diff --git a/debian/contrib/add-sources.py b/debian/contrib/add-sources.py
index 3d36c2c..31e3c66 100755
--- a/debian/contrib/add-sources.py
+++ b/debian/contrib/add-sources.py
@@ -115,8 +115,11 @@ for line in sys.stdin:
# stanzas have to be separated by a blank line
if not(line.isspace()): print
for src in deb822.Sources.iter_paragraphs(file(sources_file)):
- if src['Architecture'] in ['any', 'all'] \
- or architecture in src['Architecture'].split():
+ if src['Architecture'] in ['any', 'all']:
pkg = pkg_of_src(src)
print pkg
+ elif architecture in src['Architecture'].split():
+ pkg = pkg_of_src(src)
+ pkg['Architecture'] = architecture
+ print pkg
--
pkglab packaging
More information about the Pkg-ocaml-maint-commits
mailing list