Skip to content
This repository has been archived by the owner on May 7, 2024. It is now read-only.

Commit

Permalink
fix(multiarch): fix deb cross-arch downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
andaaron committed Jun 21, 2023
1 parent 6b62ea5 commit 723c8d6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions pkgmgr/defs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ unpack_deb() {

dpkg --add-architecture "$ARCH"

old_path=$(pwd)
cd "$dldir"
DEBIAN_FRONTEND=noninteractive \
apt-get -y --reinstall install \
"--option=Dir::Cache::Archives=$dldir" \
--no-install-recommends \
--download-only \
apt-get -y download \
"$pkg":"$ARCH"
cd "$old_path"

echo DLDIR="$dldir"
ls "$dldir"
Expand All @@ -62,11 +62,11 @@ unpack_debs() {

dpkg --add-architecture "$ARCH"

old_path=$(pwd)
cd "$dldir"
DEBIAN_FRONTEND=noninteractive \
xargs apt-get -y --reinstall install \
"--option=Dir::Cache::Archives=$dldir" \
--no-install-recommends \
--download-only <$pkgs_file
xargs apt-get -y download <$pkgs_file
cd "$old_path"

echo DLDIR="$dldir"
ls "$dldir"/
Expand Down

0 comments on commit 723c8d6

Please sign in to comment.