Author: shadzik
Date: Sat Sep 27 21:00:24 2008
New Revision: 9878

Modified:
   toys/stbr/buildlog_link.py
Log:
- ti buildlog links


Modified: toys/stbr/buildlog_link.py
==============================================================================
--- toys/stbr/buildlog_link.py  (original)
+++ toys/stbr/buildlog_link.py  Sat Sep 27 21:00:24 2008
@@ -12,9 +12,10 @@
 
 def parseHtml():
        try:
-               id = sys.argv[1]
+               dist = sys.argv[1]
+               id = sys.argv[2]
        except(IndexError):
-               print "Usage: %s buildID [th-arch]" % sys.argv[0]
+               print "Usage: %s dist buildID [th-arch|ti-arch]" % sys.argv[0]
                return
        f = open(html, 'r')
        read = f.xreadlines()
@@ -35,7 +36,10 @@
                                if re.findall("http", links[i]):
                                        link = links[i].split("\"")[1]
                                        try:
-                                               arch = 
sys.argv[2].split("th-")[1]
+                                               if re.match("ti", dist):
+                                                       arch = 
sys.argv[3].split("ti-")[1]
+                                               else:
+                                                       arch = 
sys.argv[3].split("th-")[1]
                                                if re.findall(arch, link):
                                                        print link
                                                        break
@@ -46,7 +50,14 @@
                return
 
 def getQueue():
-       os.popen("wget -N http://ep09.pld-linux.org/~builderth/queue.html";)
+       try:
+               dist = sys.argv[1]
+       except(IndexError):
+               return
+       if re.match("ti", dist):
+               os.popen("wget -N 
http://ep09.pld-linux.org/~builderti/queue.html";)
+       else:
+               os.popen("wget -N 
http://ep09.pld-linux.org/~builderth/queue.html";)
 
 getQueue()
 parseHtml()
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to