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.update_list = None
|
||||||
self.meta_release = None
|
self.meta_release = None
|
||||||
self.hwe_replacement_packages = 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:
|
if fnmatch.fnmatch(pkg.name, "oem-*-meta") and pkg.installed:
|
||||||
self.oem_metapackages.add(pkg)
|
self.oem_metapackages.add(pkg)
|
||||||
|
|
||||||
- def _fetch_ua_updates(self):
|
- 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):
|
- def _get_ua_security_status(self):
|
||||||
- self.ua_security_packages = []
|
- self.ua_security_packages = []
|
||||||
|
- self.ua_updates = []
|
||||||
- t = threading.Thread(target=self._fetch_ua_updates, daemon=True)
|
- t = threading.Thread(target=self._fetch_ua_updates, daemon=True)
|
||||||
- t.start()
|
- t.start()
|
||||||
- while t.is_alive():
|
- while t.is_alive():
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,7 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
VERSION=23
|
VERSION=23
|
||||||
|
DEPENDS=at-spi2-core
|
||||||
|
|
||||||
. ./config
|
. ./config
|
||||||
|
|
||||||
|
|
@ -30,20 +31,23 @@ rm UpdateManager/Core/LivePatchSocket.py
|
||||||
rm tests/test_livepatch_socket.py
|
rm tests/test_livepatch_socket.py
|
||||||
|
|
||||||
# Important patch make sure to update when necessary.
|
# Important patch make sure to update when necessary.
|
||||||
patch --no-backup-if-mismatch -p1 < $DATA/remove-livepatch2.patch
|
patch_p1 $DATA/remove-livepatch2.patch
|
||||||
sed -i "/ubuntu-pro-client/d" debian/control
|
|
||||||
|
|
||||||
#Closes #12545
|
#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
|
cp $DATA/index.docbook help/C/index.docbook
|
||||||
|
|
||||||
# Prevent automated connections
|
# 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.
|
# NOTE: prevent-autoconnection.patch l10n is now part of the DATA/l10n/ patches.
|
||||||
|
|
||||||
# Remove Ubuntu Pro packages updates ; yet another important patch.
|
# 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 internet Internet .
|
||||||
replace Ubuntu Trisquel .
|
replace Ubuntu Trisquel .
|
||||||
|
|
@ -83,13 +87,12 @@ sed -i 's|changelogs.ubuntu.com/|archive.trisquel.org/trisquel/|' UpdateManager/
|
||||||
# Trisquel l10n modifications using git patches.
|
# Trisquel l10n modifications using git patches.
|
||||||
for patch in $(ls -v ${DATA}/l10n/*.patch)
|
for patch in $(ls -v ${DATA}/l10n/*.patch)
|
||||||
do
|
do
|
||||||
echo "> Applying $(echo $patch|xargs basename)"
|
patch_p1 $patch
|
||||||
patch --no-backup-if-mismatch -Np1 < $patch
|
|
||||||
done
|
done
|
||||||
|
|
||||||
# Add global pycodestyle patch
|
# Add global pycodestyle patch
|
||||||
echo "> Apply 99_pycodestyle_pass.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"
|
changelog "Compiled for Trisquel"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue