From b0b9f1a54876c6071b6699703386434757616c5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Guzm=C3=A1n?= Date: Wed, 27 Aug 2025 21:24:44 -0600 Subject: [PATCH] apt-setup: yet another fix on finish-install.d --- helpers/DATA/apt-setup/93trisquel-sources-clean | 11 +++++++++++ helpers/DATA/apt-setup/99deb822-breadcrumb | 2 +- helpers/DATA/apt-setup/99deb822-breadcrumb-trim | 5 ----- helpers/make-apt-setup | 13 +++++++------ 4 files changed, 19 insertions(+), 12 deletions(-) create mode 100755 helpers/DATA/apt-setup/93trisquel-sources-clean delete mode 100755 helpers/DATA/apt-setup/99deb822-breadcrumb-trim diff --git a/helpers/DATA/apt-setup/93trisquel-sources-clean b/helpers/DATA/apt-setup/93trisquel-sources-clean new file mode 100755 index 0000000..6dab379 --- /dev/null +++ b/helpers/DATA/apt-setup/93trisquel-sources-clean @@ -0,0 +1,11 @@ +#!/bin/sh +set -e + +LEGACY=/target/etc/apt/sources.list +SD=/target/etc/apt/sources.list.d + +if ls "$SD"/*.sources >/dev/null 2>&1; then + MSG="# Trisquel sources have moved to /etc/apt/sources.list.d/trisquel.sources" + printf '%s\n' "$MSG" > "$LEGACY" +fi +exit 0 diff --git a/helpers/DATA/apt-setup/99deb822-breadcrumb b/helpers/DATA/apt-setup/99deb822-breadcrumb index 978ce92..efc34c3 100755 --- a/helpers/DATA/apt-setup/99deb822-breadcrumb +++ b/helpers/DATA/apt-setup/99deb822-breadcrumb @@ -12,7 +12,7 @@ SAVETO="$ROOT/etc/apt/sources.list.new" if ls "$SD"/*.sources >/dev/null 2>&1; then MSG="# Trisquel sources have moved to /etc/apt/sources.list.d/trisquel.sources" : > "$SAVETO" - printf '%s\n' "$MSG" > "$file" # lo que verify appenderá + printf '%s\n' "$MSG" > "$file" fi exit 0 diff --git a/helpers/DATA/apt-setup/99deb822-breadcrumb-trim b/helpers/DATA/apt-setup/99deb822-breadcrumb-trim deleted file mode 100755 index 12433cd..0000000 --- a/helpers/DATA/apt-setup/99deb822-breadcrumb-trim +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -set -e -LEGACY_SF=/target/etc/apt/sources.list -MSG="# Trisquel sources have moved to /etc/apt/sources.list.d/trisquel.sources" -printf '%s\n' "$MSG" > "$LEGACY_SF" diff --git a/helpers/make-apt-setup b/helpers/make-apt-setup index 90c8bb5..01b27d7 100644 --- a/helpers/make-apt-setup +++ b/helpers/make-apt-setup @@ -18,7 +18,7 @@ # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # -VERSION=4.9.1 +VERSION=4.10 EXTERNAL='deb-src http://ftp.debian.org/debian trixie main' REPOKEY=78DBA3BC47EF2265 NETINST=true @@ -80,8 +80,13 @@ rm generators/9[1-9]* generators/50mirror find generators -name 50mirror.ubuntu | xargs -r rm sed -i '/generators\/9[1-9]*/d' debian/apt-setup-udeb.install +# Set custom scripts +cp $DATA/50mirror.trisquel generators/ +cp $DATA/99deb822-breadcrumb generators/ +cp $DATA/93trisquel-sources-clean finish-install.d/ + cat << EOF >> debian/apt-setup-udeb.install -post-base-installer.d/99deb822-breadcrumb-trim usr/lib/post-base-installer.d +finish-install.d/93trisquel-sources-clean usr/lib/finish-install.d EOF cat << EOF > debian/apt-mirror-setup.install @@ -90,10 +95,6 @@ generators/99deb822-breadcrumb usr/lib/apt-setup/generators release-files/archive.trisquel.org usr/share/apt-setup/release-files EOF -cp $DATA/50mirror.trisquel generators/ -cp $DATA/99deb822-breadcrumb generators/ -cp $DATA/99deb822-breadcrumb-trim post-base-installer.d/ - #sed '/The partner/,/^*/d; s/services-select-ubuntu/services-select-trisquel/' -i debian/apt-setup-udeb.templates sed 's/services-select/services-select-trisquel/' -i debian/apt-setup-udeb.templates