[mirrorbrain-commits] [opensuse-svn] r7655 - trunk/tools/download-redirector-v2/tools

From: Novell Forge SVN <noreply_at_novell.com>
Date: Wed, 1 Jul 2009 06:55:49 -0600 (MDT)
Author: poeml
Date: 2009-07-01 06:55:40 -0600 (Wed, 01 Jul 2009)
New Revision: 7655

Modified:
   trunk/tools/download-redirector-v2/tools/metalink-hasher.py
Log:
metalink-hasher:
- correct indentation of verification containers


Modified: trunk/tools/download-redirector-v2/tools/metalink-hasher.py
===================================================================
--- trunk/tools/download-redirector-v2/tools/metalink-hasher.py	2009-07-01 12:32:35 UTC (rev 7654)
+++ trunk/tools/download-redirector-v2/tools/metalink-hasher.py	2009-07-01 12:55:40 UTC (rev 7655)
_at_@ -75,15 +75,16 @@
     lines = []
     for line in o.readlines():
         if re.match(line_mask, line):
+            line = line.replace('\t\t', ' ' * 6)
             lines.append(line)
 
 
     # if present, add PGP signature into the <verification> block
     if os.path.exists(src + '.asc'):
         sig = open(src + '.asc').read()
-        sig = '\t\t\t<signature type="pgp" file="%s.asc">\n\n' % os.path.basename(src) + \
+        sig = '        <signature type="pgp" file="%s.asc">\n' % os.path.basename(src) + \
               sig + \
-              '\n\t\t\t</signature>\n'
+              '\n        </signature>\n'
 
         lines.insert(1, sig)
 

_______________________________________________
Opensuse-svn mailing list
Opensuse-svn_at_forge.novell.com
http://forge.novell.com/mailman/listinfo/opensuse-svn


_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Wed Jul 01 2009 - 12:56:31 GMT

This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT