2 Commits

Author SHA1 Message Date
05c3a375cc Improve --compat for debs 2025-04-24 02:35:54 -04:00
175d62fce3 Remove confusing error 2025-04-24 02:25:41 -04:00

View File

@@ -948,14 +948,14 @@ install_mc_deb() {
execute ar x "$MC_DEB"
execute tar xJf "control.tar.xz"
# Remove minimum version specifiers from control file
sed -i 's/ ([^)]*)//g' "control"
execute sed -i 's/ ([^)]*)//g' control
# Remove libwebkit2gtk and their fantastic package versioning strategy
sed -i 's/,\s*libwebkit2gtk[^,]*,\?|libwebkit2gtk[^,]*,\?//g' "control"
execute sed -E -i 's/,[[:space:]]*libwebkit2gtk[^,]*(,|\?)?//g' control
# TODO workaround for legacy ZorinOS
[[ $ID == "ubuntu" && ${VERSION_ID%.*} -le 16 ]] &&
grep -q zorin /etc/os-release &&
sed -i 's/libva2/libva1/g' "control"
execute sed -i 's/libva2/libva1/g' control
execute tar -cJf "control.tar.xz" "control" "postinst"
declare -g MC_DEB="${MC_DEB/.deb/.compat.deb}"
@@ -972,7 +972,6 @@ install_mc_deb() {
--reinstall \
"$MC_DEB"; then
err "Local MC DEB installation failed"
err "Only the default MC repo can be used for --install=local"
if ask_ok "Remove source DEB and retry"; then
execute rm -f "$MC_DEB"
exec "$SCRIPT_PATH" "$@" "--no-update"