Skip to content
Snippets Groups Projects
Commit 7c5b0ee0 authored by test_nonet's avatar test_nonet
Browse files

add hashes for tarballs

parent 965077d8
No related branches found
No related tags found
No related merge requests found
......@@ -24,9 +24,20 @@ foreach line [split $text \n] {
set url [dict get $awaiting_digest $basename]
dict unset awaiting_digest $basename
set f [open $chksum_file]
set text [read $f]
close $f
set hash $dummy_hash
foreach line2 [split $text \n] {
if {[regexp {\A(\S+)\s+(\S+)\s+(\S+)\s*\Z} $line2 -> alg2 basename2 hash2] && $alg2 eq $digestAlg && $basename eq $basename2} {
set hash $hash2
}
}
puts " \"$basename\" = fetchurl {"
puts " url = \"$url\";"
puts " $digestAlg = \"TODO\";"
puts " $digestAlg = \"$hash\";"
puts " };"
} elseif {[regexp {\ACT_GetVersion_} $line]} {
# ignore and wait for corresponding CT_Download_*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment