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 > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 12-16-2009, 08:31 AM
Hans de Goede
 
Default yuminstall: Fix indentation error

Commit a75aa437f6fcbf988904b8a630cc82ef12c98dd6, leaves the block of
code this patch re-indents wrongly indented, causing to only be executed
in the else: case of the if above it, while it should be always executed.
---
yuminstall.py | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index ab34dfb..d8b2a25 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -437,11 +437,12 @@ class AnacondaYum(YumSorter):
(device, path) = m[3:].split(":")
else:
(device, fstype, path) = m[3:].split(":")
- self.isodir = "/mnt/isodir/%s" % path

- # This takes care of mounting /mnt/isodir first.
- self._switchImage(1)
- self.mediagrabber = self.mediaHandler
+ self.isodir = "/mnt/isodir/%s" % path
+
+ # This takes care of mounting /mnt/isodir first.
+ self._switchImage(1)
+ self.mediagrabber = self.mediaHandler
elif m.startswith("nfsiso:"):
self.isodir = "/mnt/isodir"

--
1.6.5.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 12-17-2009, 07:53 AM
Ales Kozumplik
 
Default yuminstall: Fix indentation error

ACK.

On 12/16/2009 10:31 AM, Hans de Goede wrote:

Commit a75aa437f6fcbf988904b8a630cc82ef12c98dd6, leaves the block of
code this patch re-indents wrongly indented, causing to only be executed
in the else: case of the if above it, while it should be always executed.
---
yuminstall.py | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/yuminstall.py b/yuminstall.py
index ab34dfb..d8b2a25 100644
--- a/yuminstall.py
+++ b/yuminstall.py
@@ -437,11 +437,12 @@ class AnacondaYum(YumSorter):
(device, path) = m[3:].split(":")
else:
(device, fstype, path) = m[3:].split(":")
- self.isodir = "/mnt/isodir/%s" % path

- # This takes care of mounting /mnt/isodir first.
- self._switchImage(1)
- self.mediagrabber = self.mediaHandler
+ self.isodir = "/mnt/isodir/%s" % path
+
+ # This takes care of mounting /mnt/isodir first.
+ self._switchImage(1)
+ self.mediagrabber = self.mediaHandler
elif m.startswith("nfsiso:"):
self.isodir = "/mnt/isodir"



_______________________________________________
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 09:36 PM.

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