Browse Source

Fix AUR snapshot download

master
Pekka Helenius 2 years ago
parent
commit
658447f658
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      tools/getsource.sh

+ 2
- 2
tools/getsource.sh View File

@ -139,8 +139,8 @@ function fetch_database() {
REPOMSG="Using Arch Linux user repositories (AUR)" REPOMSG="Using Arch Linux user repositories (AUR)"
if get_url "${SNAPSHOTURL}" "${URLFILE}"; then if get_url "${SNAPSHOTURL}" "${URLFILE}"; then
FILEHREFS=($(grep -oP '(?<=href\=\"\/).*?(?=\"\>Download snapshot)' "${URLFILE}"))
FILENAMES=($(grep -oP '(?<=snapshot\/).*?(?=\"\>Download snapshot)' "${URLFILE}"))
FILEHREFS=($(grep -oPza '(?<=href\=\"\/).*?(?=\"\>(\s*)Download snapshot)' "${URLFILE}" | tr -d '\0'))
FILENAMES=(${FILEHREFS[@]/*\//})
download_sourcefiles && return 0 download_sourcefiles && return 0
fi fi
return 1 return 1


Loading…
Cancel
Save