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 > Redhat > Fedora SELinux Support

 
 
LinkBack Thread Tools
 
Old 02-09-2012, 03:15 PM
David Lehman
 
Default Pass ksdata and platform to Storage from run-spoke.py and run-hub.py.

---
pyanaconda/ui/gui/tools/run-hub.py | 7 ++++---
pyanaconda/ui/gui/tools/run-spoke.py | 7 ++++---
2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/pyanaconda/ui/gui/tools/run-hub.py b/pyanaconda/ui/gui/tools/run-hub.py
index 88a75e9..f3aa83c 100755
--- a/pyanaconda/ui/gui/tools/run-hub.py
+++ b/pyanaconda/ui/gui/tools/run-hub.py
@@ -14,6 +14,7 @@ anaconda_log.init()

from pyanaconda.installclass import DefaultInstall
from pyanaconda.storage import Storage
+from pyanaconda.platform import getPlatform
from pykickstart.version import makeVersion

# Don't worry with fcoe, iscsi, dasd, any of that crud.
@@ -29,10 +30,10 @@ flags.testing = True
#hubClass = SummaryHub
hubClass = None

-storage = Storage()
-storage.reset()
-
+platform = getPlatform()
ksdata = makeVersion()
+storage = Storage(data=ksdata, platform=platform)
+storage.reset()
devicetree = storage.devicetree
instclass = DefaultInstall()

diff --git a/pyanaconda/ui/gui/tools/run-spoke.py b/pyanaconda/ui/gui/tools/run-spoke.py
index 45eca27..780f219 100755
--- a/pyanaconda/ui/gui/tools/run-spoke.py
+++ b/pyanaconda/ui/gui/tools/run-spoke.py
@@ -14,6 +14,7 @@ anaconda_log.init()

from pyanaconda.installclass import DefaultInstall
from pyanaconda.storage import Storage
+from pyanaconda.platform import getPlatform
from pykickstart.version import makeVersion

# Don't worry with fcoe, iscsi, dasd, any of that crud.
@@ -29,10 +30,10 @@ flags.testing = True
#spokeClass = SoftwareSelectionSpoke
spokeClass = None

-storage = Storage()
-storage.reset()
-
+platform = getPlatform()
ksdata = makeVersion()
+storage = Storage(data=ksdata, platform=platform)
+storage.reset()
devicetree = storage.devicetree
instclass = DefaultInstall()

--
1.7.8.4

_______________________________________________
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 04:46 AM.

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