From: Ian Kelling Date: Tue, 12 Nov 2024 04:58:09 +0000 (-0500) Subject: minor fix X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=fb19e3ac977831dd3efd109ec8ba8445d453434c;p=distro-setup minor fix --- diff --git a/distro-end b/distro-end index 4e82b5c..a63fef6 100755 --- a/distro-end +++ b/distro-end @@ -69,6 +69,32 @@ sudo() { } m() { printf "$pre %s\n" "$*"; "$@"; } e() { printf "$pre %s\n" "$*"; } + +dummy-pkg() { + ver="$1" + pkg="$2" + if ! pcheck $pkg; then + return 0 + fi + tmpdir="$(mktemp -d)" + # it puts the deb in .., so use a subdir to stay contained + mkdir $tmpdir/sub + cd "$tmpdir/sub" + # edited from output of equivs-control ubuntu-system-adjustments + cat >$pkg < current candidate + # 4.5-1ubuntu4.1 + dummy-pkg 4.5.1 chrony + + # On first install, we will need to allow downgrade, at least + # since trisquel package version suffixes are considered higher + # version numbers. check_downgrade=false if [[ ! -e /etc/apt/preferences.d/system76-apt-preferences ]]; then check_downgrade=true @@ -942,7 +978,6 @@ if [[ $codename_compat == flidas ]]; then pi gnupg-doc fi - case $distro in trisquel) case $codename in @@ -959,28 +994,10 @@ case $distro in ubuntu) case $codename in noble) - if pcheck ubuntu-system-adjustments; then - # mint firefox has a dependency which is totally not really - # needed, just some mint branding and maybe a random firefox - # setting. - tmpdir="$(mktemp -d)" - # it puts the deb in .., so use a subdir to stay contained - mkdir $tmpdir/sub - cd "$tmpdir/sub" - # edited from output of equivs-control ubuntu-system-adjustments - cat >ubuntu-system-adjustments <<'EOF' -Section: misc -Priority: optional -Version: 2030 -Standards-Version: 3.9.2 -Package: ubuntu-system-adjustments -Description: ubuntu-system-adjustments-dummy -EOF - equivs-build ubuntu-system-adjustments - sudo dpkg -i /tmp/user/1000/ubuntu-system-adjustments_2030_all.deb - cd - rm -r "$tmpdir" - fi + # mint firefox has a dependency which is totally not really + # needed, just some mint branding and maybe a random firefox + # setting. + dummy-pkg 2030 ubuntu-system-adjustments ;; esac pi firefox