summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2013-02-11 18:15:41 -0500
committerChris Lumens <clumens@redhat.com>2013-02-13 10:41:16 -0500
commitb59ad380f3037971202c4a9bd90e40ec0c781d44 (patch)
tree20256d9e7367c7724b9a93eb4c2a535432fec550
parent76e868c1f6e762b9e8aeb572a3332dff4401cfb7 (diff)
downloadanaconda-b59ad380f3037971202c4a9bd90e40ec0c781d44.tar.gz
anaconda-b59ad380f3037971202c4a9bd90e40ec0c781d44.tar.xz
anaconda-b59ad380f3037971202c4a9bd90e40ec0c781d44.zip
Get rid of packagesSeen.
pykickstart now provides this information for all commands.
-rw-r--r--anaconda.spec.in2
-rw-r--r--pyanaconda/kickstart.py4
-rw-r--r--pyanaconda/ui/gui/spokes/software.py7
3 files changed, 4 insertions, 9 deletions
diff --git a/anaconda.spec.in b/anaconda.spec.in
index 755c8a5b0..5bb3b7439 100644
--- a/anaconda.spec.in
+++ b/anaconda.spec.in
@@ -23,7 +23,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%define gconfversion 2.28.1
%define intltoolver 0.31.2-3
%define libnlver 1.0
-%define pykickstartver 1.99.22
+%define pykickstartver 1.99.24
%define yumver 3.4.3-32
%define partedver 1.8.1
%define pypartedver 2.5-2
diff --git a/pyanaconda/kickstart.py b/pyanaconda/kickstart.py
index 83ac6af41..cd7ac0f8a 100644
--- a/pyanaconda/kickstart.py
+++ b/pyanaconda/kickstart.py
@@ -74,8 +74,6 @@ stdoutLog = logging.getLogger("anaconda.stdout")
from anaconda_log import logger, logLevelMap, setHandlersLevel,\
DEFAULT_TTY_LEVEL
-packagesSeen = False
-
# deviceMatches is called early, before any multipaths can possibly be coalesced
# so it needs to know about them in some additional way: have the topology ready.
topology = None
@@ -1484,8 +1482,6 @@ def parseKickstart(f):
errorHandler.cb(KickstartError(), e)
sys.exit(1)
- global packagesSeen
- packagesSeen = ksparser.getSection("%packages").timesSeen > 0
return handler
def appendPostScripts(ksdata):
diff --git a/pyanaconda/ui/gui/spokes/software.py b/pyanaconda/ui/gui/spokes/software.py
index 859830338..3493d0c2f 100644
--- a/pyanaconda/ui/gui/spokes/software.py
+++ b/pyanaconda/ui/gui/spokes/software.py
@@ -24,7 +24,6 @@ _ = lambda x: gettext.ldgettext("anaconda", x)
N_ = lambda x: x
from pyanaconda.flags import flags
-from pyanaconda.kickstart import packagesSeen
from pyanaconda.threads import threadMgr, AnacondaThread
from pyanaconda.ui import communication
@@ -124,7 +123,7 @@ class SoftwareSelectionSpoke(NormalSpoke):
processingDone = not threadMgr.get("AnaCheckSoftwareThread") and \
not self._errorMsgs and self.txid_valid
- if flags.automatedInstall and packagesSeen:
+ if flags.automatedInstall and self.data.packages.seen:
return processingDone
else:
return self._get_selected_environment() is not None and processingDone
@@ -164,7 +163,7 @@ class SoftwareSelectionSpoke(NormalSpoke):
# Kickstart installs with %packages will have a row selected, unless
# they did an install without a desktop environment. This should
# catch that one case.
- if flags.automatedInstall and packagesSeen:
+ if flags.automatedInstall and self.data.packages.seen:
return _("Custom software selected")
return _("Nothing selected")
@@ -184,7 +183,7 @@ class SoftwareSelectionSpoke(NormalSpoke):
# we have no way to select environments with kickstart right now
# so don't try.
- if flags.automatedInstall and packagesSeen:
+ if flags.automatedInstall and self.data.packages.seen:
# We don't want to do a full refresh, just
# join the metadata thread
threadMgr.wait("AnaPayloadMDThread")