Skip to content

Commit

Permalink
pacman-helper: allow running it in Linux
Browse files Browse the repository at this point in the history
The idea being: We want to be able to run this script in GitHub
workflows that use the `ubuntu-latest` pool (because the runners in that
pool both start up and run quicker than the ones in the `windows-latest`
pool).

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
  • Loading branch information
dscho committed Jul 4, 2024
1 parent 1c346aa commit 78ef4e3
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions pacman-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,6 @@ die () {
fifo_find="/var/tmp/disowned.find"
fifo_pacman="/var/tmp/disowned.pacman"

# MSYS2's mingw-w64-$arch-ca-certificates seem to lag behind ca-certificates
CURL_CA_BUNDLE=/usr/ssl/certs/ca-bundle.crt
export CURL_CA_BUNDLE

mode=
case "$1" in
fetch|add|remove|push|files|dirs|orphans|push_missing_signatures|file_exists|lock|unlock|break_lock|quick_add|sanitize_db)
Expand All @@ -57,7 +53,18 @@ upload)
;;
esac

this_script_dir="$(cygpath -am "${0%/*}")"
case "$(uname -s)" in
MSYS|MINGW*)
# MSYS2's mingw-w64-$arch-ca-certificates seem to lag behind ca-certificates
CURL_CA_BUNDLE=/usr/ssl/certs/ca-bundle.crt
export CURL_CA_BUNDLE

this_script_dir="$(cygpath -am "${0%/*}")"
;;
*)
this_script_dir="$(cd "$(dirname "$0")" && pwd -P)"
;;
esac
base_url=https://wingit.blob.core.windows.net
mirror=/var/local/pacman-mirror

Expand Down

0 comments on commit 78ef4e3

Please sign in to comment.