[Buildbot-devel] DirectoryUpload not over-writing

Dustin J. Mitchell dustin at v.igoro.us
Tue Sep 16 22:02:50 UTC 2014


The DirectoryUpload is basically a FileUpload with `tar -cf -` on one
and and `tar -xf -` on the other.  Except using Python's built-in
tarfile module.

The function used on the master is
https://docs.python.org/2/library/tarfile.html#tarfile.TarFile.extractall

Some manual checking shows that extractall will overwrite files with
matching filenames.  So, I'm not sure how you'd see what you're
seeing.

Dustin

On Fri, Sep 12, 2014 at 3:18 PM, Ian Bell <ian.h.bell at gmail.com> wrote:
> I am uploading Sphinx generated documentation to the master, and it seems to
> randomly not over-write files.  Is there a flag that determines what to do
> in the case that the file already exists? Sometimes it seems that
> DirectoryUpload does blast the file.  Sometimes not.
>
> For instance, in my main page index.html, on the slave the file was rebuild
> properly, but when the directory is uploaded, the index.html does not get
> blasted with the upload.  A clean of the master directory does the job, but
> it seems like overkill.
>
> Ian
>
> ------------------------------------------------------------------------------
> Want excitement?
> Manually upgrade your production database.
> When you want reliability, choose Perforce
> Perforce version control. Predictably reliable.
> http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
> _______________________________________________
> Buildbot-devel mailing list
> Buildbot-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/buildbot-devel
>




More information about the devel mailing list