diff options
author | Chris Lumens <clumens@redhat.com> | 2013-02-26 10:08:53 -0500 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2013-02-28 08:46:58 -0500 |
commit | b685e70a65790ca648562192816e3d0af9a7967e (patch) | |
tree | 1720ea6a7d58588575eba09cfffce620878e002d | |
parent | 6552f631e70f2abf136bb51d91cd0e148422f85a (diff) | |
download | anaconda-b685e70a65790ca648562192816e3d0af9a7967e.tar.gz anaconda-b685e70a65790ca648562192816e3d0af9a7967e.tar.xz anaconda-b685e70a65790ca648562192816e3d0af9a7967e.zip |
Revert "Hook up the "Remove Packages" button on the dep solving error screen." (#905899).
This reverts commit f4ec3d682ffd93dfc7105eaa09acdd7fd672a3e8.
This patch also removes the button entirely. All I've ever seen it do is reduce
the installable package set to something like 30 packages and result in really
cryptic bugs about commands that should be there failing to run. It doesn't
seem to help in just removing the one or two packages that have a problem,
since it looks like it's frequently a core package with the problem.
-rw-r--r-- | pyanaconda/packaging/__init__.py | 4 | ||||
-rw-r--r-- | pyanaconda/packaging/yumpayload.py | 5 | ||||
-rw-r--r-- | pyanaconda/ui/gui/spokes/software.py | 21 |
3 files changed, 2 insertions, 28 deletions
diff --git a/pyanaconda/packaging/__init__.py b/pyanaconda/packaging/__init__.py index e25ebaba4..cba0f79fd 100644 --- a/pyanaconda/packaging/__init__.py +++ b/pyanaconda/packaging/__init__.py @@ -600,10 +600,6 @@ class ArchivePayload(ImagePayload): pass class PackagePayload(Payload): - def __init__(self, *args, **kwargs): - Payload.__init__(self, *args, **kwargs) - self.skipBroken = False - """ A PackagePayload installs a set of packages onto the target system. """ @property def kernelPackages(self): diff --git a/pyanaconda/packaging/yumpayload.py b/pyanaconda/packaging/yumpayload.py index 1f1017601..30c5a5be5 100644 --- a/pyanaconda/packaging/yumpayload.py +++ b/pyanaconda/packaging/yumpayload.py @@ -1219,11 +1219,6 @@ reposdir=%s log.info("checking software selection") self.txID = time.time() - if self.skipBroken: - log.info("running software check with skip_broken = True") - with _yum_lock: - self._yum.conf.skip_broken = True - self.release() self.deleteYumTS() diff --git a/pyanaconda/ui/gui/spokes/software.py b/pyanaconda/ui/gui/spokes/software.py index cec03846a..bc21af937 100644 --- a/pyanaconda/ui/gui/spokes/software.py +++ b/pyanaconda/ui/gui/spokes/software.py @@ -35,8 +35,6 @@ from .source import AdditionalReposDialog from pykickstart.parser import Group -from gi.repository import GLib - import sys __all__ = ["SoftwareSelectionSpoke"] @@ -64,7 +62,6 @@ class SoftwareSelectionSpoke(NormalSpoke): self._addRepoDialog = AdditionalReposDialog(self.data) # Used for detecting whether anything's changed in the spoke. - self._clickedRemove = False self._origAddons = [] self._origEnvironment = None @@ -77,7 +74,7 @@ class SoftwareSelectionSpoke(NormalSpoke): # Don't redo dep solving if nothing's changed. if row[2] == self._origEnvironment and set(addons) == set(self._origAddons) and \ - not self._clickedRemove and self.txid_valid: + self.txid_valid: return self._selectFlag = False @@ -88,7 +85,6 @@ class SoftwareSelectionSpoke(NormalSpoke): self.payload.selectGroup(group) # And then save these values so we can check next time. - self._clickedRemove = False self._origAddons = addons self._origEnvironment = self.environment @@ -325,10 +321,8 @@ class SoftwareSelectionSpoke(NormalSpoke): label = _("The following software marked for installation has errors. " "This is likely caused by an error with\nyour installation source. " - "You can attempt to remove these packages from your installation.\n" - "change your installation source, or quit the installer.") + "You can change your installation source or quit the installer.") dialog = DetailedErrorDialog(self.data, buttons=[_("_Quit"), _("_Cancel"), - _("_Remove Packages"), _("_Modify Software Source")], label=label) with enlightbox(self.window, dialog.window): @@ -344,17 +338,6 @@ class SoftwareSelectionSpoke(NormalSpoke): # Close the dialog so the user can change selections. pass elif rc == 2: - # This setting is just so we know to try re-resolving dependencies - # even if the user didn't change any other settings. - self._clickedRemove = True - - # Attempt to remove the affected packages. For yum payloads, we - # do this by just attempting to re-resolve dependencies with - # skip_broken set. - self._errorMsgs = None - self.payload.skipBroken = True - self.window.emit("button-clicked") - elif rc == 3: # Send the user to the installation source spoke. self.skipTo = "SourceSpoke" self.window.emit("button-clicked") |