[Trisquel-devel] [PATCH] Fix Update Manager freezes as a result of Trisquelization modifications

Andrew 'Leny' Lindley andrew at andrewlindley.co.uk
Tue Oct 14 23:52:04 CEST 2014

The issue in question is https://trisquel.info/en/issues/12201

This is a bug caused by Trisquelization, the third sed subsitituion in
the command prececdng the code change in the context of this patch
nukes two Python %s subsitutions which causes exceptions to be
thrown and Update Manager hangs.  The user has to bypass/workaround by
using the command line.

The patch below is a port of a standard code diff patch suggested by
@kpengboy which has been used with success by a number of users in the
duplicate issue https://trisquel.info/en/issues/12270 . I have simply
ported the code change to package helper sed standard, built the
packages and test the resultant i386 & amd64 update-manager-core
packages on scratch 6.0.1 kvm guests. 

Of note is the failing code is not present in Belenos's Update Manager
so this is a Toutatis only fix.


-- >8 --
Subject: [PATCH] Fix Update Manager freezes as a result of Trisquelization modifications
 helpers/make-update-manager | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/helpers/make-update-manager b/helpers/make-update-manager
index b702e10..ef788ca 100644
--- a/helpers/make-update-manager
+++ b/helpers/make-update-manager
@@ -21,7 +21,7 @@
 # gpg -ba release_name.tar.gz
 # Also, don't forget to update the meta-release files at archive and packages.t.i
 . ./config
@@ -255,6 +255,9 @@ replace changelogs.ubuntu.com packages.trisquel.info .
 /bin/sed -i 's/�~Lubuntu/�~Ltrisquel/g; s/被ubuntu/被trisquel/g; s#http://launchpad.net/ubuntu/+source/%s/%s/+changelog#http://trisquel.info/project/issues#g; s/<.*@ubuntu.com/<info at trisquel.info/g; s/ ubuntu\n/ trisquel\n/g; s/ubuntu\ /trisquel\ /g; s/\ ubuntu/\ trisquel/g; s/Ubuntu/Trisquel/g; s/ubuntu-desktop/trisquel-/g; s/www.ubuntu.com/trisquel.info/g; s/www.ubuntulinux.org/trisquel.info/g ' po/*.po $(find | grep py$) $(find | grep '\.glade$')
+# For https://trisquel.info/en/issues/12201  - Toutatis Only
+sed 's/"later\.") % (srcpkg, srcver_epoch)/"later.")/' -i UpdateManager/Core/MyCache.py 
 apt-get install --force-yes -y rpl
 rpl 11\.04 5\.0 DistUpgrade/*.ui
 rpl 11\.04 5\.0 po/* -R

More information about the Trisquel-devel mailing list