Skip to content

Commit 0384cda

Browse files
committed
fix: comment out unnecesary logics
1 parent 81e16f3 commit 0384cda

1 file changed

Lines changed: 19 additions & 22 deletions

File tree

install_deps.sh

Lines changed: 19 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -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"
7165
echo "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.
7569
if 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
7771
fi
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"
9492
echo "DEBUG: __debhelper_ver:$__debhelper_ver"
95-
9693
if 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
9895
fi
9996

10097
exit 0

0 commit comments

Comments
 (0)