Commit graph

57 commits

Author SHA1 Message Date
Adam Samalik
addb175ea6 Change: lookaside dir perms + cgit_pkg_list.sh 2015-07-23 13:29:42 +02:00
Adam Samalik
313aecb8ee config update 2015-06-30 10:43:50 +02:00
Adam Samalik
8a5cf561b4 Upload files to new and old paths + remove email
=============
distgit: Upload files to both the new and old path

Currently, the CGI script is set to upload files:
- to the old path if the upload uses md5
- to the new path if the upload uses sha512

The old path is as follows:
    /%(srpmname)s/%(filename)s/%(hash)s/%(filename)s

The new path is:
    /%(srpmname)s/%(filename)s/%(hashtype)s/%(hash)s/%(filename)s

This was meant to ensure compatibility with current fedpkg which
always downloads from the old path, but will eventually download from
the new path when we move to sha512.

However, working more on this, I now think it would make for a smoother
transition if we instead always stored the files at the new path, but
just hardlinked to the old path if the upload is using md5.

This is what this patch achieves.

With this deployed in production, fedpkg could be patched to try
downloading from the new path, and fallback to the old one if necessary,
which decouples the migration to the new path from the migration to the
new hash.

=============
distgit: Ensure the folder exists

We can't hard link the file if the folder containing the link
destination does not exist.

Hurray for testing in staging!

=============
distgit: os.link fails if the dest already exists

=============
distgit: And so does os.makedirs

=============
distgit: Actually hardlink over the existing source at the old path
Without this, the file could exist at both the old and new path, taking
the space on the disk twice.

This forces a hardlink if the file already existed at the old path.

=============
Remove the lookaside email hook (rely on fedmsg now).
2015-06-03 13:42:57 +02:00
Adam Samalik
a412858784 git hook: update-block-push-origin 2015-04-15 18:40:56 +02:00
Adam Samalik
c6563e59c2 unused files removed 2015-04-10 11:20:13 +02:00
Adam Samalik
7d8b6f4480 alpha package 2015-03-31 17:17:44 +02:00
Adam Samalik
eea04fcca4 reorganizing files 2015-03-30 14:56:32 +02:00