Ticket #341: 341-filedownload.patch

File 341-filedownload.patch, 1.3 kB (added by dustin, 4 months ago)

good point; might as well make FileDownload? do the same thing

  • a/buildbot/slave/commands.py

    old new  
    877877        self.path = os.path.join(self.builder.basedir, 
    878878                                 self.workdir, 
    879879                                 os.path.expanduser(self.filename)) 
     880 
     881        dirname = os.path.dirname(self.path) 
     882        if not os.path.exists(dirname): 
     883            os.makedirs(dirname) 
     884 
    880885        try: 
    881886            self.fp = open(self.path, 'wb') 
    882887            if self.debug: 
  • a/docs/buildbot.texinfo

    old new  
    51925192builder's ``builddir'' is something like @file{tests-i386}, then the 
    51935193workdir is going to be @file{~buildslave/tests-i386/build}, and a 
    51945194@code{slavedest=} of @file{foo/bar.html} will get put in 
    5195 @file{~buildslave/tests-i386/build/foo/bar.html}. Remember that 
    5196 neither of these commands will create missing directories for you. 
    5197  
     5195@file{~buildslave/tests-i386/build/foo/bar.html}. Both of these commands 
     5196will create any missing intervening directories. 
    51985197 
    51995198@subheading Other Parameters 
    52005199