diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-07-23 03:12:16 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-07-23 03:12:16 +0000 |
commit | 05405863ee85cda7cba38d6a124ea9c2c06efe3b (patch) | |
tree | 6e0c3455b94f32d3e9585045d5221431e507dabe /partitioning.py | |
parent | c2466437193887d7070368b628535302c8f5e44e (diff) | |
download | anaconda-05405863ee85cda7cba38d6a124ea9c2c06efe3b.tar.gz anaconda-05405863ee85cda7cba38d6a124ea9c2c06efe3b.tar.xz anaconda-05405863ee85cda7cba38d6a124ea9c2c06efe3b.zip |
move definitions of CLEARPART_TYPE_* to partitioning.py to avoid circular
import madness and fix everywhere that refers to the CLEARPART_TYPE_* to
ensure that they import from partitioning and don't try to do so from autopart
Diffstat (limited to 'partitioning.py')
-rw-r--r-- | partitioning.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/partitioning.py b/partitioning.py index 217589ceb..249fc8839 100644 --- a/partitioning.py +++ b/partitioning.py @@ -45,6 +45,11 @@ REQUEST_NEW = 2 REQUEST_RAID = 4 REQUEST_PROTECTED = 8 +# when clearing partitions, what do we clear +CLEARPART_TYPE_LINUX = 1 +CLEARPART_TYPE_ALL = 2 +CLEARPART_TYPE_NONE = 3 + fsTypes = {} fs_type = parted.file_system_type_get_next () @@ -719,7 +724,7 @@ class Partitions: # CLEARPART_TYPE_LINUX, CLEARPART_TYPE_ALL, CLEARPART_TYPE_NONE # used by installclasses to say which partitions to clear - self.autoClearPartType = None + self.autoClearPartType = CLEARPART_TYPE_NONE # drives to clear partitions on (following self.autoClearPartType) # note that None clears ALL drives @@ -919,7 +924,6 @@ class Partitions: new.useFdisk = self.useFdisk new.reinitializeDisks = self.reinitializeDisks return new - class DiskSet: skippedDisks = [] |