diff options
author | Jeremy Katz <katzj@redhat.com> | 2001-06-29 21:07:04 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2001-06-29 21:07:04 +0000 |
commit | 300aebb6650b338b3d3c104f9de3f1fbb749a0d6 (patch) | |
tree | d2bc5f658c09dd51d17c12755e99a1e2c9484052 /autopart.py | |
parent | f59027a75b9fd63e8f6d876430cab020ce05f18b (diff) | |
download | anaconda-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.py | 4 |
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() |