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 > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 03-23-2009, 06:57 PM
Chris Lumens
 
Default If the new size and old size are the same, treat as a no-op (#491496).

There's no sense raising a traceback if the user just chose the same size
as the filesystem already is.
---
iw/partition_dialog_gui.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/iw/partition_dialog_gui.py b/iw/partition_dialog_gui.py
index 45d9409..71c7333 100644
--- a/iw/partition_dialog_gui.py
+++ b/iw/partition_dialog_gui.py
@@ -238,9 +238,13 @@ class PartitionEditor:
if self.fsoptionsDict.has_key("resizecb") and
self.fsoptionsDict["resizecb"].get_active():
size = self.fsoptionsDict["resizesb"].get_value_as_int()
- actions.append(ActionResizeDevice(request, size))
- if request.format.type:
- actions.append(ActionResizeFormat(request, size))
+
+ try:
+ actions.append(ActionResizeDevice(request, size))
+ if request.format.type:
+ actions.append(ActionResizeFormat(request, size))
+ except ValueError:
+ pass

if request.format.exists and
getattr(request, "mountpoint", None) and
--
1.6.1.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 03-23-2009, 07:27 PM
David Cantrell
 
Default If the new size and old size are the same, treat as a no-op (#491496).

Ack.

On 03/23/2009 09:57 AM, Chris Lumens wrote:

There's no sense raising a traceback if the user just chose the same size
as the filesystem already is.
---
iw/partition_dialog_gui.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/iw/partition_dialog_gui.py b/iw/partition_dialog_gui.py
index 45d9409..71c7333 100644
--- a/iw/partition_dialog_gui.py
+++ b/iw/partition_dialog_gui.py
@@ -238,9 +238,13 @@ class PartitionEditor:
if self.fsoptionsDict.has_key("resizecb") and
self.fsoptionsDict["resizecb"].get_active():
size = self.fsoptionsDict["resizesb"].get_value_as_int()
- actions.append(ActionResizeDevice(request, size))
- if request.format.type:
- actions.append(ActionResizeFormat(request, size))
+
+ try:
+ actions.append(ActionResizeDevice(request, size))
+ if request.format.type:
+ actions.append(ActionResizeFormat(request, size))
+ except ValueError:
+ pass

if request.format.exists and
getattr(request, "mountpoint", None) and



--
David Cantrell <dcantrell@redhat.com>
Red Hat / Honolulu, HI

_______________________________________________
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 05:38 PM.

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