[PATCH 2/2] Upload source files with our preferred hash

Pavol Babincak pbabinca at redhat.com
Tue Feb 10 13:14:50 UTC 2015


Applied finally. Sorry for the delay.

On 03/17/2014 01:05 PM, Mathieu Bridon wrote:
> We are moving away from md5 for hashes.
>
> This gets the upload command to just upload the files with the
> configured lookaside hash.
>
> It only requires a corresponding change to the lookaside cache when we
> change the actual config to something else than 'md5'.
>
> That will come in a future commit, though.
> ---
>   src/fedpkg/__init__.py | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/fedpkg/__init__.py b/src/fedpkg/__init__.py
> index 55ce0e6..1a5c385 100644
> --- a/src/fedpkg/__init__.py
> +++ b/src/fedpkg/__init__.py
> @@ -286,7 +286,8 @@ class Commands(pyrpkg.Commands):
>           # This is overloaded to add in the fedora user's cert
>           cmd = ['curl', '-k', '--cert', self.cert_file, '--fail', '-o',
>                  '/dev/null', '--show-error', '--progress-bar', '-F',
> -               'name=%s' % self.module_name, '-F', 'md5sum=%s' % file_hash,
> +               'name=%s' % self.module_name,
> +               '-F', '%ssum=%s' % (self.lookasidehash, file_hash),
>                  '-F', 'file=@%s' % file]
>           if self.quiet:
>               cmd.append('-s')
>


-- 
Pavol Babincak
Release Engineering, Red Hat


More information about the rel-eng mailing list