@@ -60,41 +60,38 @@ _DEBIAN_SID_DEBHELPER() {
6060 rm /etc/apt/sources.list.d/debian-sid.list
6161}
6262
63- CODE_NAME=$( lsb_release -sc)
64-
65- # if [ "${CODE_NAME}" != "focal" ]; then
66- # apt install -y dh-virtualenv
67- # fi
68-
6963__coreutils_ver=" $( dpkg-query -f ' ${Version}' -W coreutils || true) "
7064[[ -z $__coreutils_ver ]] && __coreutils_ver=" 0.0.0"
7165echo " DEBUG: __coreutils_ver:$__coreutils_ver "
7266
7367# Note: latest debhelper calls `cp --update=none` which is unsupported in coreutils < 9.5
74- # Install a fixed version of debhelp in our repo instead
68+ # Install a fixed version of debhelper in our repo instead.
7569if dpkg --compare-versions " $__coreutils_ver " le ' 9.5~' ; then
76- sudo apt install -y " $__dir " /builddep/* .deb
70+ sudo apt install -y --allow-downgrades " $__dir " /builddep/* .deb
7771fi
7872
79- case ${CODE_NAME} in
80- # dists with coreutils >= 9.5 can use the latest debhelper from debian sid
81- trixie)
82- # _DEBIAN_SID_DEBHELPER
83- ;;
84- plucky|questing|resolute)
85- # _DEBIAN_SID_DEBHELPER
86- ;;
87- * )
88- echo " $CODE_NAME does NOT NEED to add Debian sources."
89- ;;
90- esac
73+ CODE_NAME=$( lsb_release -sc)
74+ # if [ "${CODE_NAME}" != "focal" ]; then
75+ # apt install -y dh-virtualenv
76+ # fi
77+ # case ${CODE_NAME} in
78+ # # dists with coreutils >= 9.5 can use the latest debhelper from debian sid
79+ # trixie)
80+ # _DEBIAN_SID_DEBHELPER
81+ # ;;
82+ # plucky|questing|resolute)
83+ # _DEBIAN_SID_DEBHELPER
84+ # ;;
85+ # *)
86+ # echo "$CODE_NAME does NOT NEED to add Debian sources."
87+ # ;;
88+ # esac
9189
9290__debhelper_ver=" $( dpkg-query -f ' ${Version}' -W debhelper || true) "
9391[[ -z $__debhelper_ver ]] && __debhelper_ver=" 0.0.0"
9492echo " DEBUG: __debhelper_ver:$__debhelper_ver "
95-
9693if dpkg --compare-versions " $__debhelper_ver " le ' 13.1~' ; then
97- sudo apt install -y --allow-downgrades " $__dir " /builddep/* .deb
94+ sudo apt install -y " $__dir " /builddep/* .deb
9895fi
9996
10097exit 0
0 commit comments