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 Directory

 
 
LinkBack Thread Tools
 
Old 10-27-2010, 05:10 PM
Chris Lumens
 
Default Remove unused currentMedia parameter.

---
pyanaconda/iw/task_gui.py | 2 --
pyanaconda/yuminstall.py | 3 ---
2 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/pyanaconda/iw/task_gui.py b/pyanaconda/iw/task_gui.py
index 42c2dfd..75d0910 100644
--- a/pyanaconda/iw/task_gui.py
+++ b/pyanaconda/iw/task_gui.py
@@ -281,7 +281,6 @@ class RepoEditor:
repo.baseurl = "file://%s" % ayum.tree
ayum.mediagrabber = ayum.mediaHandler
self.anaconda.mediaDevice = cdr
- ayum.currentMedia = 1
repo.mediaid = getMediaId(ayum.tree)
log.info("set mediaid of repo %s to: %s" % (repo.name, repo.mediaid))

@@ -448,7 +447,6 @@ class RepoMethodstrEditor(RepoEditor):

self.anaconda.backend.ayum.mediagrabber = self.anaconda.backend.ayum.mediaHandler
self.anaconda.backend.ayum.anaconda.mediaDevice = cdr
- self.anaconda.backend.ayum.currentMedia = 1
log.info("found installation media on %s" % cdr)
return "cdrom://%s:%s" % (cdr, self.anaconda.backend.ayum.tree)

diff --git a/pyanaconda/yuminstall.py b/pyanaconda/yuminstall.py
index a3b4668..7999551 100644
--- a/pyanaconda/yuminstall.py
+++ b/pyanaconda/yuminstall.py
@@ -325,7 +325,6 @@ class AnacondaYum(YumSorter):
self.isodir = None

# Only needed for media installs.
- self.currentMedia = None
self.mediagrabber = None

# Where is the source media mounted? This is the directory
@@ -508,7 +507,6 @@ class AnacondaYum(YumSorter):
if cdr:
self.mediagrabber = self.mediaHandler
self.anaconda.mediaDevice = cdr
- self.currentMedia = 1
log.info("found installation media on %s" % cdr)
else:
# No CD with media on it and no repo=/method= parameter, so
@@ -933,7 +931,6 @@ class AnacondaYum(YumSorter):
dev = self.anaconda.storage.devicetree.getDeviceByName(s elf.anaconda.mediaDevice)
dev.format.mountpoint = self.tree
unmountCD(dev, self.anaconda.intf.messageWindow)
- self.currentMedia = None

def urlgrabberFailureCB (self, obj, *args, **kwargs):
if hasattr(obj, "exception"):
--
1.7.1.1

_______________________________________________
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 06:36 AM.

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