Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 85578 Details for
Bug 131293
Portage generates duff SHA256 checksums
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
wrong-sha256-sums.sh
wrong-sha256-sums.sh (text/plain), 1.37 KB, created by
TGL
on 2006-04-26 17:14:05 UTC
(
hide
)
Description:
wrong-sha256-sums.sh
Filename:
MIME Type:
Creator:
TGL
Created:
2006-04-26 17:14:05 UTC
Size:
1.37 KB
patch
obsolete
>#!/bin/bash > >PORTDIR=$(portageq portdir) >DISTDIR=$(portageq envvar DISTDIR) > >cd "${PORTDIR}" >[[ $# -le 0 ]] \ > && SEARCH_PATHS=$(ls -d *-*) \ > || SEARCH_PATHS="${@}" > ># Broken digest (wrong SHA256 on some $DISTFILES files) >find ${SEARCH_PATHS} -name "digest-*" | \ >while read digest ; do > pkgdir="${digest%%/files/*}" > ebuild="${pkgdir}/${digest##*/files/digest-}.ebuild" > sed -n 's:^SHA256 \([0-9a-f]\+\) \([^ ]\+\) .*:\2 \1:p' "${digest}" | \ > while read digest_file digest_sha ; do > [[ -f ${DISTDIR}/${digest_file} ]] || continue > good_sha=$(sha256deep "${DISTDIR}/${digest_file}") > good_sha="${good_sha%% *}" > [[ ${good_sha} == ${digest_sha} ]] && continue > echo "Wrong digest for ${ebuild} on ${digest_file}" > #fix: ebuild "${ebuild}" digest > done >done > ># Broken Manifest (wrong SHA256 on some $PORTDIR files) >find ${SEARCH_PATHS} -name "Manifest" | \ >while read manifest ; do > pkgdir="${manifest%%/Manifest}" > ebuild=$(ls -1 ${pkgdir}/*.ebuild 2>/dev/null | head -n 1) || continue > sed -n 's:^SHA256 \([0-9a-f]\+\) \([^ ]\+\) .*:\2 \1:p' "${manifest}" | \ > while read manifest_file manifest_sha ; do > [[ -f ${pkgdir}/${manifest_file} ]] || continue > good_sha=$(sha256deep "${pkgdir}/${manifest_file}") > good_sha="${good_sha%% *}" > [[ ${good_sha} == ${manifest_sha} ]] && continue > echo "Wrong Manifest in ${pkgdir} on ${manifest_file}" > #fix: ebuild "${ebuild}" digest > done >done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 131293
: 85578 |
85601