[PATCH] distgit: Upload files to both the new and old path
Dennis Gilmore
dennis at ausil.us
Wed Jun 10 15:33:04 UTC 2015
On Friday, May 29, 2015 12:43:32 PM Mathieu Bridon wrote:
> On Fri, 2015-05-29 at 11:32 +0200, Mathieu Bridon wrote:
> > Given that I received two +1, and that you agreed to the general idea,
> > I've pushed it, and Pierre-Yves is helping me run the playbook to test
> > it in staging.
>
> And it's good we did, because there was a problem (see my followup patch
> pushed to ansible), it's now working just fine in testing:
>
> On the server:
>
> # find /srv/cache/lookaside/pkgs/libcangjie/
>
> On the client:
>
> $ fedpkgstg new-sources libcangjie-1.3.tar.xz
> Uploading: libcangjie-1.3.tar.xz
> ########################################################################
> 100.0% Source upload succeeded. Don't forget to commit the sources file
>
> Back on the server:
>
> # find /srv/cache/lookaside/pkgs/libcangjie/
> /srv/cache/lookaside/pkgs/libcangjie/
> /srv/cache/lookaside/pkgs/libcangjie/libcangjie-1.3.tar.xz
> /srv/cache/lookaside/pkgs/libcangjie/libcangjie-1.3.tar.xz/md5
>
> /srv/cache/lookaside/pkgs/libcangjie/libcangjie-1.3.tar.xz/md5/e50ed193b0e8
> 2b07d2d32ee6e62720b9
> /srv/cache/lookaside/pkgs/libcangjie/libcangjie-1.3.tar.xz/md5/e50ed193b0e8
> 2b07d2d32ee6e62720b9/libcangjie-1.3.tar.xz
> /srv/cache/lookaside/pkgs/libcangjie/libcangjie-1.3.tar.xz/e50ed193b0e82b07
> d2d32ee6e62720b9
> /srv/cache/lookaside/pkgs/libcangjie/libcangjie-1.3.tar.xz/e50ed193b0e82b07
> d2d32ee6e62720b9/libcangjie-1.3.tar.xz
>
> So now, in staging, when uploading a new source file, it is uploaded in both
> location.
>
> If the file only exists in the old location:
>
> On the server:
>
> # find /srv/cache/lookaside/pkgs/libcangjie/
> /srv/cache/lookaside/pkgs/libcangjie/
> /srv/cache/lookaside/pkgs/libcangjie/libcangjie-1.3.tar.xz
>
> /srv/cache/lookaside/pkgs/libcangjie/libcangjie-1.3.tar.xz/e50ed193b0e82b07
> d2d32ee6e62720b9
> /srv/cache/lookaside/pkgs/libcangjie/libcangjie-1.3.tar.xz/e50ed193b0e82b07
> d2d32ee6e62720b9/libcangjie-1.3.tar.xz
>
> On the client:
>
> $ fedpkgstg new-sources libcangjie-1.3.tar.xz
> Uploading: libcangjie-1.3.tar.xz
> ########################################################################
> 100.0% Source upload succeeded. Don't forget to commit the sources file
>
>
> Back on the server:
>
> # find /srv/cache/lookaside/pkgs/libcangjie/
> /srv/cache/lookaside/pkgs/libcangjie/
> /srv/cache/lookaside/pkgs/libcangjie/libcangjie-1.3.tar.xz
>
> /srv/cache/lookaside/pkgs/libcangjie/libcangjie-1.3.tar.xz/e50ed193b0e82b07
> d2d32ee6e62720b9
> /srv/cache/lookaside/pkgs/libcangjie/libcangjie-1.3.tar.xz/e50ed193b0e82b07
> d2d32ee6e62720b9/libcangjie-1.3.tar.xz
> /srv/cache/lookaside/pkgs/libcangjie/libcangjie-1.3.tar.xz/md5
> /srv/cache/lookaside/pkgs/libcangjie/libcangjie-1.3.tar.xz/md5/e50ed193b0e8
> 2b07d2d32ee6e62720b9
> /srv/cache/lookaside/pkgs/libcangjie/libcangjie-1.3.tar.xz/md5/e50ed193b0e8
> 2b07d2d32ee6e62720b9/libcangjie-1.3.tar.xz
I think we should be linking to the old location and a sha512sum location not
md5 but the general idea is okay
Dennis
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20150610/acd24913/attachment-0001.sig>
More information about the infrastructure
mailing list