Title: [commits] (heikki) [11172] Fix two bugs and make debugging output easier to read:
Revision
11172
Author
heikki
Date
2006-07-14 15:57:41 -0700 (Fri, 14 Jul 2006)

Log Message

Fix two bugs and make debugging output easier to read:
- we need to sort the binary tarballs list we have so that
the check if we have two versions of the same tarball (debug
and release) will work - must have been a fluke it worked at
all earlier
- list does not have join(), string does - doh!

Modified Paths

Diff

Modified: trunk/hardhat/tbhelp.cgi (11171 => 11172)

--- trunk/hardhat/tbhelp.cgi	2006-07-14 22:19:08 UTC (rev 11171)
+++ trunk/hardhat/tbhelp.cgi	2006-07-14 22:57:41 UTC (rev 11172)
@@ -95,13 +95,13 @@
     archiveDirs.sort()
 
     if debug:
-        print platform
+        print '<p>platform: %s</p>' % platform
     
     for archive in archiveDirs:
         os.chdir(stagingRootDir + '/' + platform)
 
         if debug:
-            print archive
+            print '<li>', archive
             
         if len(archive) != 14 or not os.path.isdir(archive):
             if debug:
@@ -115,9 +115,10 @@
         os.chdir(stagingRootDir + '/' + platform + '/' + archive)
         
         packages = glob.glob('*.tar.gz')
+		packages.sort()
 
         if debug:
-            print packages
+            print 'packages=', len(packages), packages
 
         platTime = platform + ':' + archive
         lastPackage = ''
@@ -165,7 +166,7 @@
         results[p] = availableBinaryTarballsForPlatform(p)
 
     if debug:
-        print results
+        print '<p>results:</p>', results
         
     available = []
     for k, valWin in results['windows'].items():
@@ -182,7 +183,7 @@
                 for p in allPlatforms:
                     s.append('|')
                     s.append(results[p][k])
-                available.append(s.join(''))
+                available.append(''.join(s))
     
     print '<title>Copy external/internal tarballs</title></head><body>'
     print '<h1>Copy external/internal tarballs</h1>'




_______________________________________________
Commits mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/commits

Reply via email to