Package: enigma2-plugin-extensions-s4aupdater
Priority: optional
Section: extensions
Description: aktualzacja list kanalow i oscama s4a
Maintainer: acypaczom sat-4-all.com
Depends: python3-requests
Source: NA
Version: 23.12.27.1727
Architecture: all
DestinationPath: /usr/lib/enigma2/python/Plugins/Extensions/s4aUpdater/

CONTROL=/tmp
# Add a pre-installation script
Pre-Depends: python
Pre-Depends-Replace: python-requests, python3-requests
Pre-Depends-Script: <<EOF
    if [ -x /usr/bin/python2 ]; then
        DEPENDS="python-requests"
    elif [ -x /usr/bin/python3 ]; then
        DEPENDS="python3-requests"
    else
        echo "Neither Python 2 nor Python 3 is installed. Cannot determine dependencies."
        exit 1
    fi

    echo "Depends: $DEPENDS" >> $CONTROL/control
EOF
