[cvs] / gkb / gkb.py  

cvs: gkb/gkb.py

Diff for /gkb/gkb.py between version 1.11 and 1.12

version 1.11, Sat Aug 14 06:42:14 2004 UTC version 1.12, Sat Aug 14 07:00:31 2004 UTC
Line 83 
Line 83 
                 message -- explanation of why the specific transition is not allowed                  message -- explanation of why the specific transition is not allowed
         """          """
   
         def __init__(self, previous, next, message):          def __init__(self, message):
                 self.message = message                  self.message = message
   
 def printverbose(myoutput):  def printverbose(myoutput):
Line 153 
Line 153 
         gkb_getsource(kinfo)          gkb_getsource(kinfo)
   
         # go into the work directory          # go into the work directory
         chdir(workdir)          chdir(workdir, kinfo)
   
         # archive the clean source for later uploading          # archive the clean source for later uploading
         os.spawnlp(os.P_WAIT, "tar xjf " + kinfo["mastertree"] + ".tar.bz2 " + kinfo["mastertree"])          log("archiving source to " + kinfo["mastertree"] + ".tar.bz2", kinfo)
           os.spawnlp(os.P_WAIT, "tar cjf " + kinfo["mastertree"] + ".tar.bz2 " + kinfo["mastertree"])
   
         # now we'll go into the tree's work dir          # now we'll go into the tree's work dir
         chdir(kinfo["workdir"],kinfo)          chdir(kinfo["workdir"],kinfo)
Line 441 
Line 442 
         verifydir("%s/work" % buildroot) # build dir, make sure it exists          verifydir("%s/work" % buildroot) # build dir, make sure it exists
   
         # download the build jobs from the master site          # download the build jobs from the master site
         if os.spawnlp(os.P_WAIT, "wget --quiet --output-document=gkb.xml \"%s/manager.php?cmd=getjobs&host=%s&pass=%s\"" % (msite,host,passwd)):          if os.spawnlp(os.P_WAIT, "wget", "wget", "--quiet", "--output-document=gkb.xml", "%s/manager.php?cmd=getjobs&host=%s&pass=%s" % (msite,host,passwd)) != 0:
                 deathbyerror("Unable to download build config from master site %s, aborting." % msite)                  raise FatalError, "Unable to download build config from master site %s, aborting." % msite
   
         # sets up 'mastertrees' and 'builds' dicts          # sets up 'mastertrees' and 'builds' dicts
         gkb_parsexml('gkb.xml')          gkb_parsexml('gkb.xml')
Line 456 
Line 457 
                         gkb_build(root, bdict)                          gkb_build(root, bdict)
                 except BuildError, e:                  except BuildError, e:
                         log(e.message, bdict)                          log(e.message, bdict)
                   except KeyboardInterrupt, e:
                           log("Caught keyboard interrupt, exiting...")
                           break
                   except:
                           log("Caught unknown exception, exiting...")
                           break
   
         endtime=getoutput("date +'%R:%S %Z'")          endtime=getoutput("date +'%R:%S %Z'")
   


Generate output suitable for use with a patch program
Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

Tobias McNulty

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help