Re: [PATCH 2/2] Fix hasWindows() to actually work as advertised

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ack.

On Tue, 4 May 2010, Hans de Goede wrote:

---
bootloader.py |    7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/bootloader.py b/bootloader.py
index e2b06a8..30912e7 100644
--- a/bootloader.py
+++ b/bootloader.py
@@ -232,9 +232,12 @@ def writeBootloader(anaconda):
    dosync()

def hasWindows(bl):
+    if not booty.doesDualBoot():
+        return False
+
    foundWindows = False
-    for (k,v) in bl.images.getImages().iteritems():
-        if v[0].lower() == 'other' and v[2] in bootloaderInfo.dosFilesystems:
+    for (dev, type) in bl.images.availableBootDevices(bl.storage):
+        if type in booty.dosFilesystems:
            foundWindows = True
            break



- -- David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkvgRkAACgkQ5hsjjIy1VknYZACfUVxY8DTNkqh+Qt+7u1/IRhbh
+xAAoIoc6rmmP4GtQFNjCFzsVbTQoCi4
=2nVh
-----END PGP SIGNATURE-----

_______________________________________________
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