python 2 for 4.9 and lower

This commit is contained in:
Robin Appelman 2021-10-27 19:52:46 +02:00
commit 95e261af0d

View file

@ -27,10 +27,15 @@ jobs:
sudo sed -Ei '/.*partner/! s/^# (deb-src .*)/\1/g' /etc/apt/sources.list sudo sed -Ei '/.*partner/! s/^# (deb-src .*)/\1/g' /etc/apt/sources.list
sudo apt update sudo apt update
sudo apt-get build-dep smbclient sudo apt-get build-dep smbclient
sudo apt install python2.7-dev
- name: Download sources - name: Download sources
run: | run: |
wget "https://download.samba.org/pub/samba/stable/samba-${{ matrix.pkgver }}.tar.gz" wget "https://download.samba.org/pub/samba/stable/samba-${{ matrix.pkgver }}.tar.gz"
tar xf samba-${{ matrix.pkgver }}.tar.gz tar xf samba-${{ matrix.pkgver }}.tar.gz
- name: Switch to python 2.7
if: matrix.pkgver == '4.9.18' || matrix.pkgver == '4.8.12' || matrix.pkgver == '4.7.12'
run: |
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
- name: Build smbclient - name: Build smbclient
run: | run: |
cd samba-${{ matrix.pkgver }} cd samba-${{ matrix.pkgver }}