Skip to content

Commit

Permalink
do not fail if python3-apt returns an error code, it may have done wh…
Browse files Browse the repository at this point in the history
…at we needed anyway #200 #192
  • Loading branch information
proycon committed Jun 3, 2021
1 parent 79b07b5 commit 54f89fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roles/lamachine-core/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@
shell: |
#!/bin/sh
if [ ! -d python3-apt ]; then
apt-get download python3-apt || exit 1
apt-get download python3-apt #we continue if this fails because it may fail with an unrelated permission error and still deliver the expected result
dpkg -x python3-apt*.deb python3-apt || exit 1
cp -r python3-apt/usr/lib/python3/dist-packages/* {{local_prefix}}/lib/python{{ python_version.stdout }}/site-packages/ || exit 1
cd {{local_prefix}}/lib/python{{ python_version.stdout }}/site-packages/ || exit 1
Expand Down

0 comments on commit 54f89fa

Please sign in to comment.