Skip to content

Commit e559018

Browse files
authored
Fixing package reference for s390x (#455)
1 parent eac686c commit e559018

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

base/debian-10/install.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,14 @@ ln -sf /usr/bin/pip${PY_SHORT} /usr/bin/pip
5050
# For ansible apt module
5151
cd /tmp
5252
apt-get download python3-apt=1.8.4.3
53-
dpkg -x python3-apt_1.8.4.3_amd64.deb python3-apt
54-
rm python3-apt_1.8.4.3_amd64.deb
53+
ARCH=`arch`
54+
PKG_ARCH=`dpkg --print-architecture`
55+
dpkg -x python3-apt_1.8.4.3_${PKG_ARCH}.deb python3-apt
56+
rm python3-apt_1.8.4.3_${PKG_ARCH}.deb
5557
cp -r /tmp/python3-apt/usr/lib/python3/dist-packages/* /usr/lib/python${PY_SHORT}/site-packages/
5658
cd /usr/lib/python${PY_SHORT}/site-packages/
57-
cp apt_pkg.cpython-37m-x86_64-linux-gnu.so apt_pkg.so
58-
cp apt_inst.cpython-37m-x86_64-linux-gnu.so apt_inst.so
59+
cp apt_pkg.cpython-37m-${ARCH}-linux-gnu.so apt_pkg.so
60+
cp apt_inst.cpython-37m-${ARCH}-linux-gnu.so apt_inst.so
5961
rm -rf /tmp/python3-apt
6062
# Install splunk-ansible dependencies
6163
cd /

0 commit comments

Comments
 (0)