[PATCH 19/47] Syntax fixes for disk_new_fresh() and probe_specific.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 partedUtils.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/partedUtils.py b/partedUtils.py
index f619760..2efe769 100644
--- a/partedUtils.py
+++ b/partedUtils.py
@@ -164,7 +164,7 @@ def labelDisk(deviceFile, forceLabelType=None):
                 'gpt' in parted.archLabels[iutil.getArch()]:
             label = parted.diskType['gpt']
 
-    disk = dev.disk_new_fresh(label)
+    disk = parted.freshDisk(dev, label)
     disk.commit()
     return disk
 
@@ -287,10 +287,10 @@ def validateFsType(part):
     # now check each type, and set the partition system accordingly.
     for fsname in fsnames:
         fstype = fsTypes[fsname]
-        if fstype.probe_specific(part.geom) != None:
+        if parted.probeForSpecificFileSystem(fstype, part.geometry) != None:
             # XXX verify that this will not modify system type
             # in the case where a user does not modify partitions
-            part.set_system(fstype)
+            part.system = fstype
             return
 
 def isLinuxNativeByNumtype(numtype):
@@ -934,7 +934,7 @@ class DiskSet:
                     "installation choices about which drives to "
                     "ignore.\n\n"
                     "Would you like to initialize this drive, "
-                    "erasing ALL DATA?") % (drive, device.model, device.getSize(unit="MB"),)
+                    "erasing ALL DATA?") % (drive, dev.model, dev.getSize(unit="MB"),)
 
             rc = intf.messageWindow(_("Warning"), msg, type="yesno")
 
-- 
1.6.1.3

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux