[Pkg-haskell-commits] darcs: tools: Set arch only once

Joachim Breitner mail at joachim-breitner.de
Tue May 24 13:54:07 UTC 2011


Thu Apr 14 18:36:14 UTC 2011  Joachim Breitner <mail at joachim-breitner.de>
  * Set arch only once
  Ignore-this: d4ad9c6dd225f3f8ff03ccbab11bab5b

    M ./haskell-pkg-graph.py -3 +3

Thu Apr 14 18:36:14 UTC 2011  Joachim Breitner <mail at joachim-breitner.de>
  * Set arch only once
  Ignore-this: d4ad9c6dd225f3f8ff03ccbab11bab5b
diff -rN -u old-tools//haskell-pkg-graph.py new-tools//haskell-pkg-graph.py
--- old-tools//haskell-pkg-graph.py	2011-05-24 13:54:07.745297684 +0000
+++ new-tools//haskell-pkg-graph.py	2011-05-24 13:54:07.757275382 +0000
@@ -12,6 +12,9 @@
 #
 # Suggested usage: ./haskell-pkg-graph.py | tred | unflatten | dot -Tpdf -o haskell-pkg-graph.pdf
 
+# Select which arches file to use
+arch = "amd64"
+
 import bz2
 import gzip
 import datetime
@@ -47,7 +50,6 @@
     return f
 
 def debcheck(binary_src_map):
-    arch = "amd64"
     f = smart_open("data/unstable-main-binary-%s-Packages.gz" % arch)
     p = Popen(['edos-debcheck','-quiet','-xml','-failures','-checkonly', ','.join(binary_src_map.keys())], stdin=PIPE,stdout=PIPE)
     (out, err) = p.communicate(f.read())
@@ -131,8 +133,6 @@
             print "  exception: %s" % e
         f.close()
 
-        arch = "i386"
-
         # Create dict of all binaries
         self.packages = {}     
         f = smart_open("data/unstable-main-binary-%s-Packages.gz" % arch)





More information about the Pkg-haskell-commits mailing list