diff --git a/scripts/pkgfile b/scripts/pkgfile index b83d0e6..3551508 100755 --- a/scripts/pkgfile +++ b/scripts/pkgfile @@ -156,7 +156,11 @@ update () { msg "Updating [%s] file list... " $repo vmsg "Trying mirror %s... " $mirror - wget -q "$RATELIMIT" "$filelist" -O "$repofile" || { warn "Could not retrieve %s\n" $filelist; continue; } + if echo ${mirror} | grep -qoE "^file://" ; then + cp "$(echo ${filelist} | sed 's/^file:\/\///1')" "$repofile" + else + wget -q "$RATELIMIT" "$filelist" -O "$repofile" || { warn "Could not retrieve %s\n" $filelist; continue; } + fi msg "Extracting [%s] file list... " $repo mkdir -p "$repo.tmp" || { warn "Could not create temporary directory for %s\n" $repo; continue; }