FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 09-30-2010, 02:26 PM
Radek Vykydal
 
Default Get rid of hackish resetPackageSelection.

With new flow, we don't need this because we start with
new YumBackend after going [Back].
---
pyanaconda/backend.py | 4 ++--
pyanaconda/textw/task_text.py | 1 -
pyanaconda/yuminstall.py | 8 --------
3 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/pyanaconda/backend.py b/pyanaconda/backend.py
index 6166d2c..2f4cecc 100644
--- a/pyanaconda/backend.py
+++ b/pyanaconda/backend.py
@@ -290,11 +290,11 @@ def doInstall(anaconda):

# does this need to be per-backend? we'll just leave here until it does
def doBasePackageSelect(anaconda):
+ if anaconda.dir == DISPATCH_BACK:
+ return DISPATCH_BACK
if anaconda.ksdata:
- anaconda.backend.resetPackageSelections()
kickstart.selectPackages(anaconda)
elif anaconda.displayMode != 't':
- anaconda.backend.resetPackageSelections()
anaconda.instClass.setPackageSelection(anaconda)
anaconda.instClass.setGroupSelection(anaconda)

diff --git a/pyanaconda/textw/task_text.py b/pyanaconda/textw/task_text.py
index 416e572..3dd9290 100644
--- a/pyanaconda/textw/task_text.py
+++ b/pyanaconda/textw/task_text.py
@@ -22,7 +22,6 @@ from pyanaconda.constants import *

class TaskWindow:
def __call__(self, screen, anaconda):
- anaconda.backend.resetPackageSelections()
anaconda.backend.selectGroup("Core")

return INSTALL_OK
diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index 3ddf6b2..c94f14c 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -1424,14 +1424,6 @@ reposdir=/etc/anaconda.repos.d,/tmp/updates/anaconda.repos.d,/tmp/product/anacon
rc.append(g.groupid)
return rc

- def resetPackageSelections(self):
- """Reset the package selection to an empty state."""
- for txmbr in self.ayum.tsInfo:
- self.ayum.tsInfo.remove(txmbr.pkgtup)
- self.ayum.tsInfo.conditionals.clear()
- for grp in self.ayum.comps.groups:
- grp.selected = False
-
def selectModulePackages(self, anaconda, kernelPkgName):
(base, sep, ext) = kernelPkgName.partition("-")

--
1.7.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 01:00 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org