update-manager: update patches for release 22.04.17

This commit is contained in:
Luis Guzmán 2023-12-13 19:04:32 +00:00
parent 6c22d50cf0
commit a5023df0f2
6 changed files with 149 additions and 1897 deletions

View file

@ -19,16 +19,14 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
VERSION=20
VERSION=21
. ./config
rm UpdateManager/Core/LivePatchSocket.py
rm tests/test_livepatch_socket.py
# Important patch make sure to update when necessary.
patch --no-backup-if-mismatch -p1 < $DATA/remove-livepatch2.patch
sed -i '/import LivePatchSocket/d' UpdateManager/Dialogs.py
sed -i '/self.check_livepatch_status/d' UpdateManager/Dialogs.py
sed -i "/ubuntu-advantage-tools/d" debian/control
#Closes #12545
@ -38,17 +36,7 @@ cp $DATA/index.docbook help/C/index.docbook
# Prevent automated connections
patch --no-backup-if-mismatch -p1 < $DATA/prevent-autoconnection.patch
cat << EOF >> po/es.po
msgid ""
"To prevent unwanted connections to the Internet\n"
"Trisquel will not automatically check for updates\n"
"unless you say so in the Settings panel."
msgstr ""
"Para prevenir conexiones inesperadas a Internet\n"
"Trisquel no descargará actualizaciones automáticamente\n"
"salvo que lo indiques en el panel de Configuración."
EOF
# NOTE: prevent-autoconnection.patch l10n is now part of the DATA/l10n/ patches.
replace internet Internet .
replace Ubuntu Trisquel .
@ -57,10 +45,10 @@ replace "Trisquel-Gettext" "Ubuntu-Gettext" .
sed -i 's/Trisquel 20.04 LTS to Trisquel 22.04 LTS/Trisquel 10.0 LTS to Trisquel 11.0 LTS/' HweSupportStatus/consts.py
replace ubuntu-desktop trisquel .
replace kubuntu-desktop triskel .
replace xubuntu-desktop trisquel-mini .
replace edubuntu-desktop toast .
replace ubuntu-desktop trisquel .
sed '/%s base/ s/name.*/name = "Trisquel base"/' -i ./UpdateManager/Core/UpdateList.py
sed 's_https://changelogs.ubuntu.com/changelogs/pool/_https://packages.trisquel.org/changelogs/pool/_' -i UpdateManager/Core/MyCache.py
@ -82,9 +70,12 @@ sed -i '/do-partial-upgrade/s|ubuntu-release|trisquel-release|' UpdateManager/Di
#Fix base_uri for trisquel meta-release-lts
sed -i 's|changelogs.ubuntu.com/|archive.trisquel.org/trisquel/|' UpdateManager/Core/MetaRelease.py
# l10n patch fixes
## es.po
patch --no-backup-if-mismatch -p0 < $DATA/l10n/es_po_rev032023.patch
# Trisquel l10n modifications using git patches.
for patch in $(ls -v ${DATA}/l10n/*.patch)
do
echo "> Applying $patch"
patch --no-backup-if-mismatch -Np1 < $patch
done
changelog "Compiled for Trisquel"