summaryrefslogtreecommitdiffstats
path: root/autopart.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-06-29 21:07:04 +0000
committerJeremy Katz <katzj@redhat.com>2001-06-29 21:07:04 +0000
commit300aebb6650b338b3d3c104f9de3f1fbb749a0d6 (patch)
treed2bc5f658c09dd51d17c12755e99a1e2c9484052 /autopart.py
parentf59027a75b9fd63e8f6d876430cab020ce05f18b (diff)
downloadanaconda-300aebb6650b338b3d3c104f9de3f1fbb749a0d6.tar.gz
anaconda-300aebb6650b338b3d3c104f9de3f1fbb749a0d6.tar.xz
anaconda-300aebb6650b338b3d3c104f9de3f1fbb749a0d6.zip
if not preexisting AND not protected, don't set device... not the other way around
Diffstat (limited to 'autopart.py')
-rw-r--r--autopart.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/autopart.py b/autopart.py
index a08bdf6bd..b3f1ad1b5 100644
--- a/autopart.py
+++ b/autopart.py
@@ -492,7 +492,7 @@ def growParts(diskset, requests, newParts):
def setPreexistParts(diskset, requests, newParts):
for request in requests:
- if request.type != REQUEST_PREEXIST or request.type != REQUEST_PROTECTED:
+ if request.type != REQUEST_PREEXIST and request.type != REQUEST_PROTECTED:
continue
disk = diskset.disks[request.drive]
part = disk.next_partition()
@@ -547,7 +547,7 @@ def processPartitioning(diskset, requests, newParts):
request.device = None
setPreexistParts(diskset, requests.requests, newParts)
-
+
# sort requests by size
requests.sortRequests()