update-manager: update helper for ecne
This commit is contained in:
parent
a895c0c17b
commit
a1d2d2e353
2 changed files with 18 additions and 10 deletions
|
|
@ -26,15 +26,20 @@ index 3b9eaa58..d44040d5 100644
|
|||
self.update_list = None
|
||||
self.meta_release = None
|
||||
self.hwe_replacement_packages = None
|
||||
@@ -294,38 +291,6 @@ class UpdateManager(Gtk.Window):
|
||||
@@ -295,43 +295,6 @@ class UpdateManager(Gtk.Window):
|
||||
if fnmatch.fnmatch(pkg.name, "oem-*-meta") and pkg.installed:
|
||||
self.oem_metapackages.add(pkg)
|
||||
|
||||
- def _fetch_ua_updates(self):
|
||||
- self.ua_updates = ua.updates().updates
|
||||
- try:
|
||||
- self.ua_updates = ua.updates().updates
|
||||
- except Exception as e:
|
||||
- print("Error running updates end-point: ", e)
|
||||
- self.ua_updates = []
|
||||
-
|
||||
- def _get_ua_security_status(self):
|
||||
- self.ua_security_packages = []
|
||||
- self.ua_updates = []
|
||||
- t = threading.Thread(target=self._fetch_ua_updates, daemon=True)
|
||||
- t.start()
|
||||
- while t.is_alive():
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@
|
|||
#
|
||||
|
||||
VERSION=23
|
||||
DEPENDS=at-spi2-core
|
||||
|
||||
. ./config
|
||||
|
||||
|
|
@ -30,20 +31,23 @@ 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 "/ubuntu-pro-client/d" debian/control
|
||||
patch_p1 $DATA/remove-livepatch2.patch
|
||||
|
||||
#Closes #12545
|
||||
patch --no-backup-if-mismatch -p1 < $DATA/trisquel-versions.patch
|
||||
patch_p1 $DATA/trisquel-versions.patch
|
||||
|
||||
cp $DATA/index.docbook help/C/index.docbook
|
||||
|
||||
# Prevent automated connections
|
||||
patch --no-backup-if-mismatch -p1 < $DATA/prevent-autoconnection.patch
|
||||
patch_p1 $DATA/prevent-autoconnection.patch
|
||||
# NOTE: prevent-autoconnection.patch l10n is now part of the DATA/l10n/ patches.
|
||||
|
||||
# Remove Ubuntu Pro packages updates ; yet another important patch.
|
||||
patch --no-backup-if-mismatch -p1 < $DATA/rm_pro.packages.updates_from_u-m.patch
|
||||
patch_p1 $DATA/rm_pro.packages.updates_from_u-m.patch
|
||||
|
||||
# Remove snap backend.
|
||||
#sed -i "/gir1.2-snapd-2,/d" debian/control
|
||||
#patch_p1 $DATA/rm_snap_backend.patch
|
||||
|
||||
replace internet Internet .
|
||||
replace Ubuntu Trisquel .
|
||||
|
|
@ -83,13 +87,12 @@ sed -i 's|changelogs.ubuntu.com/|archive.trisquel.org/trisquel/|' UpdateManager/
|
|||
# Trisquel l10n modifications using git patches.
|
||||
for patch in $(ls -v ${DATA}/l10n/*.patch)
|
||||
do
|
||||
echo "> Applying $(echo $patch|xargs basename)"
|
||||
patch --no-backup-if-mismatch -Np1 < $patch
|
||||
patch_p1 $patch
|
||||
done
|
||||
|
||||
# Add global pycodestyle patch
|
||||
echo "> Apply 99_pycodestyle_pass.patch"
|
||||
patch --no-backup-if-mismatch -p1 < $DATA/extra/99_pycodestyle_pass.patch
|
||||
patch_p1 $DATA/extra/99_pycodestyle_pass.patch
|
||||
|
||||
changelog "Compiled for Trisquel"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue