From 6b7ca94be115b7678074b3880b8f127d17c5267e Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 7 Jul 2026 18:20:12 +0200 Subject: feat: parse_manifest reads NAME_URL entries from a deps manifest Co-Authored-By: Claude Opus 4.8 --- mkhint | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'mkhint') diff --git a/mkhint b/mkhint index 5795fb0..50e2412 100755 --- a/mkhint +++ b/mkhint @@ -425,6 +425,19 @@ fix_current() { echo "Done. $count package(s) with phantom deps." } +# ── bundled-dep manifest handling ───────────────────────────────────────────── +# Reconcile a bundle package's extra DOWNLOAD lines against an upstream deps +# manifest (opt-in via BUNDLE_MANIFEST_FILE). See docs spec 2026-07-07. + +# parse_manifest — print one download URL per line for each NAME_URL +# entry. SHA256 lines ignored (hints use MD5SUM; we re-download and md5). +parse_manifest() { + local file="$1" + [[ -f "$file" ]] || return 0 + awk '/_URL[[:space:]]/ { print $2 }' "$file" +} +# ── end bundled-dep manifest handling ───────────────────────────────────────── + # Create new hint file create_new_hint_file() { cd "$HINT_DIR" -- cgit v1.2.3