update-manager: update remove livepatch patch.

This commit is contained in:
Luis Guzmán 2022-06-22 00:19:56 +00:00
parent 0293b82543
commit 31e98ea7e6
2 changed files with 19 additions and 11 deletions

View file

@ -1,8 +1,7 @@
diff --git a/UpdateManager/Dialogs.py b/UpdateManager/Dialogs.py diff -ru a/UpdateManager/Dialogs.py b/UpdateManager/Dialogs.py
index b100c3a..d604f54 100644 --- a/UpdateManager/Dialogs.py 2022-04-11 07:56:45.000000000 +0000
--- a/UpdateManager/Dialogs.py +++ b/UpdateManager/Dialogs.py.clean 2022-06-21 18:44:39.204551351 +0000
+++ b/UpdateManager/Dialogs.py @@ -148,70 +148,6 @@
@@ -149,61 +149,6 @@ class InternalDialog(BuilderDialog):
self.main_container.add(content_widget) self.main_container.add(content_widget)
self.main_container.set_visible(bool(content_widget)) self.main_container.set_visible(bool(content_widget))
@ -11,12 +10,20 @@ index b100c3a..d604f54 100644
- codename = get_dist() - codename = get_dist()
- return di.is_lts(codename) - return di.is_lts(codename)
- -
- def _has_livepatch_settings_ui(self):
- try:
- return Gio.DesktopAppInfo \
- .new('gnome-online-accounts-panel.desktop')
- except Exception:
- return None
-
- def on_livepatch_status_ready(self, active, cs, ps, fixes): - def on_livepatch_status_ready(self, active, cs, ps, fixes):
- self.set_desc(None) - self.set_desc(None)
- -
- if not active: - if not active:
- if self._is_livepatch_supported() and \ - if self._is_livepatch_supported() and \
- self.settings_button and \ - self.settings_button and \
- self._has_livepatch_settings_ui() and \
- self.settings.get_int('launch-count') >= 4: - self.settings.get_int('launch-count') >= 4:
- self.set_desc(_("<b>Tip:</b> You can use Livepatch to " - self.set_desc(_("<b>Tip:</b> You can use Livepatch to "
- "keep your computer more secure between " - "keep your computer more secure between "
@ -61,6 +68,7 @@ index b100c3a..d604f54 100644
- self.lp_socket = LivePatchSocket() - self.lp_socket = LivePatchSocket()
- self.lp_socket.get_status(self.on_livepatch_status_ready) - self.lp_socket.get_status(self.on_livepatch_status_ready)
- -
-
class StoppedUpdatesDialog(InternalDialog): class StoppedUpdatesDialog(InternalDialog):
def __init__(self, window_main): def __init__(self, window_main):
InternalDialog.__init__(self, window_main)

View file

@ -18,25 +18,25 @@
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
# #
VERSION=15 VERSION=16
. ./config . ./config
rm UpdateManager/Core/LivePatchSocket.py rm UpdateManager/Core/LivePatchSocket.py
rm tests/test_livepatch_socket.py rm tests/test_livepatch_socket.py
patch --no-backup-if-mismatch -p1 < $DATA/remove-livepatch.patch patch --no-backup-if-mismatch -p1 < $DATA/remove-livepatch2.patch
sed -i '/import LivePatchSocket/d' UpdateManager/Dialogs.py sed -i '/import LivePatchSocket/d' UpdateManager/Dialogs.py
sed -i '/self.check_livepatch_status/d' UpdateManager/Dialogs.py sed -i '/self.check_livepatch_status/d' UpdateManager/Dialogs.py
sed -i "/ubuntu-advantage-tools/d" debian/control sed -i "/ubuntu-advantage-tools/d" debian/control
#Closes #12545 #Closes #12545
patch -p0 < $DATA/trisquel-versions.patch patch --no-backup-if-mismatch -p0 < $DATA/trisquel-versions.patch
cp $DATA/index.docbook help/C/index.docbook cp $DATA/index.docbook help/C/index.docbook
# Prevent automated connections # Prevent automated connections
patch -p1 < $DATA/prevent-autoconnection.patch patch --no-backup-if-mismatch -p1 < $DATA/prevent-autoconnection.patch
cat << EOF >> po/es.po cat << EOF >> po/es.po
msgid "" msgid ""
@ -54,7 +54,7 @@ replace Ubuntu Trisquel .
replace TrisquelDistroInfo UbuntuDistroInfo . replace TrisquelDistroInfo UbuntuDistroInfo .
replace "Trisquel-Gettext" "Ubuntu-Gettext" . replace "Trisquel-Gettext" "Ubuntu-Gettext" .
sed -i 's/Trisquel 18.04 LTS to Trisquel 20.04 LTS/Trisquel 9.0 LTS to Trisquel 10.0 LTS/' HweSupportStatus/consts.py 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 ubuntu-desktop trisquel .
replace kubuntu-desktop triskel . replace kubuntu-desktop triskel .