From: Michael Prokop Date: Sun, 7 Jun 2009 22:50:04 +0000 (+0200) Subject: Switch order of usb <-> path check X-Git-Tag: v0.9.8~14 X-Git-Url: https://git.grml.org/?p=grml2usb.git;a=commitdiff_plain;h=8171e23c2e7ed04157242cf88e8664f4a6ad8af6;ds=sidebyside Switch order of usb <-> path check --- diff --git a/debian/changelog b/debian/changelog index 86bfe52..437c5dc 100644 --- a/debian/changelog +++ b/debian/changelog @@ -19,8 +19,11 @@ grml2usb (0.9.8) UNRELEASED; urgency=low * All these “set root=” are not needed for GRUB2 (thanks, Thorsten) * Add grml2iso for creating a bootable DVD (thanks again for help and patches, Thorsten). + * Switch order of check whether the specified device is a directory + and check for usb device (as the usb device check will fail if + it's a directory). - -- Michael Prokop Sun, 07 Jun 2009 23:09:26 +0200 + -- Michael Prokop Mon, 08 Jun 2009 00:48:17 +0200 grml2usb (0.9.7) unstable; urgency=low diff --git a/grml2usb b/grml2usb index 42362d6..7cc07c3 100755 --- a/grml2usb +++ b/grml2usb @@ -1630,7 +1630,7 @@ def handle_vfat(device): logging.critical("Execution failed: %s", error) sys.exit(1) - if not check_for_usbdevice(device) and not os.path.isdir(device): + if not os.path.isdir(device) and not check_for_usbdevice(device): print "Warning: the specified device %s does not look like a removable usb device." % device f = raw_input("Do you really want to continue? y/N ") if f == "y" or f == "Y":