search for: checksum_sha512

Displaying 7 results from an estimated 7 matches for "checksum_sha512".

2015 Jul 28
0
[PATCH 04/10] builder: internally use a list of checksums for indexes
...25 insertions(+), 11 deletions(-) diff --git a/builder/builder.ml b/builder/builder.ml index e4f40ef..6f2b4bd 100644 --- a/builder/builder.ml +++ b/builder/builder.ml @@ -281,10 +281,10 @@ let main () = let () = match entry with (* New-style: Using a checksum. *) - | { Index_parser.checksum_sha512 = Some csum } -> - Checksums.verify_checksum (Checksums.SHA512 csum) template + | { Index_parser.checksums = Some csums } -> + Checksums.verify_checksums csums template - | { Index_parser.checksum_sha512 = None } -> + | { Index_parser.checksums = None } -> (*...
2014 Feb 24
2
[PATCH] builder: add a mandatory 'arch' key in index files
...ilder/index_parser.ml +++ b/builder/index_parser.ml @@ -27,6 +27,7 @@ and entry = { printable_name : string option; (* the name= field *) osinfo : string option; file_uri : string; + arch : string; signature_uri : string option; (* deprecated, will be removed in 1.26 *) checksum_sha512 : string option; revision : int; @@ -43,6 +44,7 @@ and entry = { let print_entry chan (name, { printable_name = printable_name; file_uri = file_uri; + arch = arch; osinfo = osinfo;...
2015 Jul 28
19
[PATCH 00/10] RFC: builder: first support for Simple Streams metadata
Hi, this series adds a basic support for Simple Streams v1.0 metadata files. This makes it possible to create a repository .conf files with [cirros] uri=http://download.cirros-cloud.net format=simplestreams to read the latest version of each CirrOS image. TODO items: - a bit more testing: listing and creating images works, so the current metadata is correct - handle revisions, so newer
2015 Jul 28
0
[PATCH 02/10] builder: create and use a new Checksums module
...ini_reader.ml \ paths.ml \ languages.ml \ diff --git a/builder/builder.ml b/builder/builder.ml index d40ad8f..e4f40ef 100644 --- a/builder/builder.ml +++ b/builder/builder.ml @@ -282,7 +282,7 @@ let main () = match entry with (* New-style: Using a checksum. *) | { Index_parser.checksum_sha512 = Some csum } -> - Sigchecker.verify_checksum sigchecker (Sigchecker.SHA512 csum) template + Checksums.verify_checksum (Checksums.SHA512 csum) template | { Index_parser.checksum_sha512 = None } -> (* Old-style: detached signature. *) diff --git a/builder/checksums.ml b...
2014 Jan 21
0
[PATCH] builder: proper consider subkeys in index files
...39;\n") n; corrupt_file () in let signature_uri = - try Some (make_absolute_uri (List.assoc "sig" fields)) + try Some (make_absolute_uri (List.assoc ("sig", None) fields)) with Not_found -> None in let checksum_sha512 = - try Some (List.assoc "checksum[sha512]" fields) + try Some (List.assoc ("checksum", Some "sha512") fields) with Not_found -> - try Some (List.assoc "checksum" fields) + try Some (List.assoc (...
2014 Jan 21
2
Re: [PATCH] builder: proper consider subkeys in index files
On Tuesday 21 January 2014 16:37:20 Richard W.M. Jones wrote: > On Tue, Jan 21, 2014 at 05:18:27PM +0100, Pino Toscano wrote: > > + sv = caml_copy_string (fields->subkey ? fields->subkey : ""); > > > > Store_field (v, 1, sv); > > Heh, sure would be nice if this was an option type :-) > > I believe the following should work: > >
2014 Jan 21
3
[PATCH] builder: proper consider subkeys in index files
...n") n; corrupt_file () in let signature_uri = - try Some (make_absolute_uri (List.assoc "sig" fields)) + try Some (make_absolute_uri (find_elem "sig" "" fields)) with Not_found -> None in let checksum_sha512 = - try Some (List.assoc "checksum[sha512]" fields) + try Some (find_elem "checksum" "sha512" fields) with Not_found -> - try Some (List.assoc "checksum" fields) + try Some (find_elem "check...