~ubuntu-core-dev/update-manager/main

« back to all changes in this revision

Viewing changes to UpdateManager/UpdateManager.py

  • Committer: Brian Murray
  • Date: 2020-04-06 22:31:33 UTC
  • mfrom: (2864.1.1 no-i386-upgrade)
  • Revision ID: brian@canonical.com-20200406223133-irhubyn67nbouez8
UpdateManager/UpdateManager.py: Do not offer to upgrade systems running on
an i386 host architecture to another release. (LP: #1845690)

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
                      HWEUpgradeDialog,
53
53
                      NeedRestartDialog,
54
54
                      NoUpdatesDialog,
 
55
                      NoUpgradeForYouDialog,
55
56
                      PartialUpgradeDialog,
56
57
                      StoppedUpdatesDialog,
57
58
                      UnsupportedDialog,
62
63
from .Core.MyCache import MyCache
63
64
from .Core.roam import NetworkManagerHelper
64
65
from .Core.UpdateList import UpdateList
65
 
from .Core.utils import get_dist
 
66
from .Core.utils import get_arch, get_dist
66
67
from .backend import (InstallBackend,
67
68
                      get_backend)
68
69
 
87
88
        self.meta_release = None
88
89
        self.hwe_replacement_packages = None
89
90
        self.duplicate_packages = None
 
91
        self.arch = get_arch()
90
92
 
91
93
        # Basic GTK+ parameters
92
94
        self.set_title(_("Software Updater"))
309
311
        if (self.meta_release.new_dist
310
312
                and (self.options.check_dist_upgrades
311
313
                     or settings.get_boolean("check-dist-upgrades"))):
 
314
            if self.arch == 'i386':
 
315
                return NoUpgradeForYouDialog(self, self.meta_release,
 
316
                                             self.arch)
312
317
            return DistUpgradeDialog(self, self.meta_release)
313
318
 
314
319
        return None