upload_buildsymbols.py
changeset 6 460ec0868b86
parent 5 418f808c28e0
equal deleted inserted replaced
5:418f808c28e0 6:460ec0868b86
    29 	    if fn[0].find("buildsymbols") != -1:
    29 	    if fn[0].find("buildsymbols") != -1:
    30 	      tmpstr = fn[0].rsplit(".", 1)[0]
    30 	      tmpstr = fn[0].rsplit(".", 1)[0]
    31 	      tmpstr = tmpstr.rsplit("-", 2)
    31 	      tmpstr = tmpstr.rsplit("-", 2)
    32 	      name = tmpstr[0].rsplit("-", 1)[0]
    32 	      name = tmpstr[0].rsplit("-", 1)[0]
    33 	      # filter xulrunner symbols
    33 	      # filter xulrunner symbols
    34 	      if name.find("xulrunner") == -1:
    34 	      if name.find("xulrunner") != -1:
    35 		continue
    35 		continue
    36 	      version = tmpstr[1] + "-" + tmpstr[2]
    36 	      version = tmpstr[1] + "-" + tmpstr[2]
    37               if version.find("_") == -1:
    37               if version.find("_") == -1:
    38 	        self.packages[name] = version
    38 	        self.packages[name] = version
    39 
    39 
    88 def find_packages(repo, arch):
    88 def find_packages(repo, arch):
    89   updates = []
    89   updates = []
    90   try:
    90   try:
    91     f = urllib2.urlopen(repo)
    91     f = urllib2.urlopen(repo)
    92   except urllib2.HTTPError, e:
    92   except urllib2.HTTPError, e:
    93     print e.code
    93     print "WARN: ", e.code
    94     print "Repo does not exist"
       
    95     return False
    94     return False
    96 
    95 
    97   s = f.read()
    96   s = f.read()
    98 
    97 
    99   parser = MyParser()
    98   parser = MyParser()