Skip to content

Commit

Permalink
fix: update patches
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Jan 15, 2025
1 parent 3e55bf7 commit 2e81136
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions patches/patch-manylinux.diff
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ index 04dfa24..a35abb5 100755
case "${OS_ID_LIKE}" in
*rhel*) OS_ID_LIKE=rhel;;
*alpine*) OS_ID_LIKE=alpine;;
+ *debian*) OS_ID_LIKE=debian;;
+ *debian*) OS_ID_LIKE=debian;;
*) echo "unsupported image"; exit 1;;
esac

Expand All @@ -103,11 +103,11 @@ index 04dfa24..a35abb5 100755
elif [ "${PACKAGE_MANAGER}" = "apk" ]; then
apk add --no-cache "$@"
+ elif [ "${PACKAGE_MANAGER}" = "apt" ]; then
+ export DEBIAN_FRONTEND=noninteractive
+ sed -i 's/none/en_US/g' /etc/apt/apt.conf.d/docker-no-languages
+ apt-get update -qq
+ apt-get upgrade -qq -y
+ apt-get install -qq -y --no-install-recommends "$@"
+ export DEBIAN_FRONTEND=noninteractive
+ sed -i 's/none/en_US/g' /etc/apt/apt.conf.d/docker-no-languages
+ apt-get update -qq
+ apt-get upgrade -qq -y
+ apt-get install -qq -y --no-install-recommends "$@"
else
return 1
fi
Expand All @@ -125,8 +125,8 @@ index 04dfa24..a35abb5 100755
elif [ "${PACKAGE_MANAGER}" = "apk" ]; then
:
+ elif [ "${PACKAGE_MANAGER}" = "apt" ]; then
+ apt-get clean -qq
+ rm -rf /var/lib/apt/lists/*
+ apt-get clean -qq
+ rm -rf /var/lib/apt/lists/*
else
return 1
fi
Expand Down

0 comments on commit 2e81136

Please sign in to comment.