[Pkg-ocaml-maint-commits] r5950 - /trunk/packages/edos-debcheck/trunk/debian/contrib/add-sources.py

zack at users.alioth.debian.org zack at users.alioth.debian.org
Fri Aug 15 16:57:39 UTC 2008


Author: zack
Date: Fri Aug 15 16:57:39 2008
New Revision: 5950

URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/?sc=1&rev=5950
Log:
avoid outputing source packages not belonging to the current architecture

Modified:
    trunk/packages/edos-debcheck/trunk/debian/contrib/add-sources.py

Modified: trunk/packages/edos-debcheck/trunk/debian/contrib/add-sources.py
URL: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/edos-debcheck/trunk/debian/contrib/add-sources.py?rev=5950&op=diff
==============================================================================
--- trunk/packages/edos-debcheck/trunk/debian/contrib/add-sources.py (original)
+++ trunk/packages/edos-debcheck/trunk/debian/contrib/add-sources.py Fri Aug 15 16:57:39 2008
@@ -42,7 +42,6 @@
                 for_me = not ((False, architecture) in dep['arch'])
         else:
             for_me = False
-        #print 'ZZZ FOR_ME', for_me
         return for_me
 
     def mk_bin_rels(fields, relations):
@@ -109,6 +108,8 @@
 for line in sys.stdin:
     print line,
 for src in deb822.Sources.iter_paragraphs(file(sources_file)):
-    pkg = pkg_of_src(src)
-    print pkg
+    if src['Architecture'] in ['any', 'all'] \
+            or architecture in src['Architecture'].split():
+        pkg = pkg_of_src(src)
+        print pkg
 




More information about the Pkg-ocaml-maint-commits mailing list