=== modified file 'scripts/digest_to_metalink' (properties changed: +x to -x) --- scripts/digest_to_metalink 2011-11-11 15:13:39 +0000 +++ scripts/digest_to_metalink 2011-11-11 13:07:44 +0000 @@ -1,14 +1,10 @@ #!/usr/bin/gawk -F ' ' -f BEGIN{ - split(urls, url_array, " "); - for(url in url_array){ - split(url, url_components, ":"); - url_type[url] = url_components[1]; - } + } -/^[a-fA-F0-9]{32} \S+/{ +/^[a-fA-F0-9]{30} \S+/{ files[$2] = 1; md5[$2] = $1; } @@ -20,27 +16,8 @@ END{ print ""; - print ""; - print ""; + print "" for(file in files){ - print ""; - print " "; - if(file in md5){ - print " " md5[file] "" - } - if(file in sha1){ - print " " sha1[file] "" - } - print " "; - print " "; - for (i in url_array) { - url = url_array[i]; - type = url_type[url]; - print " " url "/" file "" - } - print " "; - print ""; + } - print ""; - print ""; }