Blame SOURCES/0002-Convert-Constraint-to-__ped.Constraint-in-partition..patch

47a405
From 760a3b7c39a59c2e0f131b40e0a48bdf8240f637 Mon Sep 17 00:00:00 2001
47a405
From: Chris Tyler <chris@tylers.info>
47a405
Date: Fri, 11 Jan 2013 13:42:29 -0500
47a405
Subject: [PATCH 02/03] Convert Constraint to __ped.Constraint in
47a405
 partition.getMaxGeometry()
47a405
47a405
---
47a405
 src/parted/partition.py | 2 +-
47a405
 1 file changed, 1 insertion(+), 1 deletion(-)
47a405
47a405
diff --git a/src/parted/partition.py b/src/parted/partition.py
47a405
index 20b6f41..ee3e2d0 100644
47a405
--- a/src/parted/partition.py
47a405
+++ b/src/parted/partition.py
47a405
@@ -166,7 +166,7 @@ class Partition(object):
47a405
     def getMaxGeometry(self, constraint):
47a405
         """Given a constraint, return the maximum Geometry that self can be
47a405
            grown to.  Raises Partitionexception on error."""
47a405
-        return parted.Geometry(PedGeometry=self.disk.getPedDisk().get_max_partition_geometry(self.__partition, constraint))
47a405
+        return parted.Geometry(PedGeometry=self.disk.getPedDisk().get_max_partition_geometry(self.__partition, constraint.getPedConstraint()))
47a405
 
47a405
     @localeC
47a405
     def isFlagAvailable(self, flag):
47a405
-- 
47a405
1.8.1.2
47a405