/[qa]/trunk/pts/www/bin/other_to_xml.py
ViewVC logotype

Diff of /trunk/pts/www/bin/other_to_xml.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2048 by zack, Fri Nov 28 14:42:45 2008 UTC revision 2049 by zack, Fri Nov 28 16:53:12 2008 UTC
# Line 1  Line 1 
1  #!/usr/bin/python  #!/usr/bin/python
2  # -*- coding: utf8 -*-  # -*- coding: utf-8 -*-
3    
4  # Make sure tabs expand to 8 spaces in vim  # Make sure tabs expand to 8 spaces in vim
5  # vim: expandtab  # vim: expandtab
# Line 14  import os.path, rfc822, sys, string, re, Line 14  import os.path, rfc822, sys, string, re,
14  from xml.dom import implementation, ext  from xml.dom import implementation, ext
15    
16  from config import dir, odir, root  from config import dir, odir, root
17    from common import hash_name
18    
19  # Create the source <-> binaries correspondances  # Create the source <-> binaries correspondances
20  source2binaries = {} # maps a source package to its binaries  source2binaries = {} # maps a source package to its binaries
# Line 305  while 1: Line 306  while 1:
306    
307      doc = implementation.createDocument(None, "other", None)      doc = implementation.createDocument(None, "other", None)
308      root_elt = doc.documentElement      root_elt = doc.documentElement
309        hash = hash_name(pkg)
     hash = pkg[0]  
     if pkg[0:3] == "lib":  
         hash = pkg[0:4]  
310    
311      # Add debcheck availability info      # Add debcheck availability info
312      dc_sig = ""      dc_sig = ""

Legend:
Removed from v.2048  
changed lines
  Added in v.2049

  ViewVC Help
Powered by ViewVC 1.1.5