Ticket #341: 341-filedownload.patch

File 341-filedownload.patch, 1.3 KB (added by dustin, 4 years ago)

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

  • buildbot/slave/commands.py

    diff --git a/buildbot/slave/commands.py b/buildbot/slave/commands.py
    index f84f703..f34e139 100644
    a b class SlaveFileDownloadCommand(Command): 
    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: 
  • docs/buildbot.texinfo

    diff --git a/docs/buildbot.texinfo b/docs/buildbot.texinfo
    index 8380237..dea0959 100644
    a b directory. If the buildslave is running in @file{~buildslave}, and the 
    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