[neon/forks/ubuntu-release-upgrader/Neon/unstable_jammy] /: switch to neon for meta-release URL

Harald Sitter null at kde.org
Tue Apr 26 19:20:53 BST 2022


Git commit 5b1ad788a7fdd4966a1bdf8f261b95c76d6a1959 by Harald Sitter, on behalf of Jonathan Riddell.
Committed on 26/04/2022 at 18:17.
Pushed by sitter into branch 'Neon/unstable_jammy'.

switch to neon for meta-release URL

also mangle already installed configs

M  +2    -2    data/meta-release
M  +6    -0    debian/ubuntu-release-upgrader-core.preinst

https://invent.kde.org/neon/forks/ubuntu-release-upgrader/commit/5b1ad788a7fdd4966a1bdf8f261b95c76d6a1959

diff --git a/data/meta-release b/data/meta-release
index 0793c9e5..a9f05381 100644
--- a/data/meta-release
+++ b/data/meta-release
@@ -1,7 +1,7 @@
 # default location for the meta-release file
 
 [METARELEASE]
-URI = https://changelogs.ubuntu.com/meta-release
-URI_LTS = https://changelogs.ubuntu.com/meta-release-lts
+URI = https://releases.neon.kde.org/meta-release
+URI_LTS = https://releases.neon.kde.org/meta-release-lts
 URI_UNSTABLE_POSTFIX = -development
 URI_PROPOSED_POSTFIX = -proposed
diff --git a/debian/ubuntu-release-upgrader-core.preinst b/debian/ubuntu-release-upgrader-core.preinst
index 102f73cc..bd3ca38b 100644
--- a/debian/ubuntu-release-upgrader-core.preinst
+++ b/debian/ubuntu-release-upgrader-core.preinst
@@ -16,6 +16,12 @@ set -e
 
 case "$1" in
     install|upgrade)
+        if [ -e /etc/update-manager/meta-release ]; then
+          # Remove machine ID counting for now; \
+          sed -i 's,URI =.*,URI = https://releases.neon.kde.org/meta-release,' /etc/update-manager/meta-release; \
+          sed -i 's,URI_LTS =.*,URI_LTS = https://releases.neon.kde.org/meta-release-lts,' /etc/update-manager/meta-release; \
+	fi
+
         # this is replaced to be a real file an not a symlink in version
         # 0.134.2, dpkg will not remove the symlink and put the new
         #  file as .dpkg-new (can be removed post-lucid)



More information about the Neon-commits mailing list