diff options
| -rwxr-xr-x | bitbake/bin/image-writer | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bitbake/bin/image-writer b/bitbake/bin/image-writer index 3f9f5c1ed5..0b9e4505ae 100755 --- a/bitbake/bin/image-writer +++ b/bitbake/bin/image-writer | |||
| @@ -33,7 +33,7 @@ from bb.ui.crumbs.hobwidget import HobAltButton, HobButton | |||
| 33 | 33 | ||
| 34 | # I put all the fs bitbake supported here. Need more test. | 34 | # I put all the fs bitbake supported here. Need more test. |
| 35 | DEPLOYABLE_IMAGE_TYPES = ["jffs2", "cramfs", "ext2", "ext3", "btrfs", "squashfs", "ubi", "vmdk"] | 35 | DEPLOYABLE_IMAGE_TYPES = ["jffs2", "cramfs", "ext2", "ext3", "btrfs", "squashfs", "ubi", "vmdk"] |
| 36 | Title = "USB Image Maker" | 36 | Title = "USB Image Writer" |
| 37 | 37 | ||
| 38 | class DeployWindow(gtk.Window): | 38 | class DeployWindow(gtk.Window): |
| 39 | def __init__(self, image_path=''): | 39 | def __init__(self, image_path=''): |
| @@ -43,13 +43,13 @@ class DeployWindow(gtk.Window): | |||
| 43 | valid = True | 43 | valid = True |
| 44 | if not os.path.exists(image_path): | 44 | if not os.path.exists(image_path): |
| 45 | valid = False | 45 | valid = False |
| 46 | lbl = "<b>Invalid image file path: %s.</b>\nPress <b>Select Image</b> button to select an image." % image_path | 46 | lbl = "<b>Invalid image file path: %s.</b>\nPress <b>Select Image</b> to select an image." % image_path |
| 47 | else: | 47 | else: |
| 48 | image_path = os.path.abspath(image_path) | 48 | image_path = os.path.abspath(image_path) |
| 49 | extend_name = os.path.splitext(image_path)[1][1:] | 49 | extend_name = os.path.splitext(image_path)[1][1:] |
| 50 | if extend_name not in DEPLOYABLE_IMAGE_TYPES: | 50 | if extend_name not in DEPLOYABLE_IMAGE_TYPES: |
| 51 | valid = False | 51 | valid = False |
| 52 | lbl = "<b>Undeployable imge type: %s</b>\nPress <b>Select Image</b> button to select an image." % extend_name | 52 | lbl = "<b>Undeployable imge type: %s</b>\nPress <b>Select Image</b> to select an image." % extend_name |
| 53 | 53 | ||
| 54 | if not valid: | 54 | if not valid: |
| 55 | image_path = '' | 55 | image_path = '' |
| @@ -66,8 +66,8 @@ class DeployWindow(gtk.Window): | |||
| 66 | HobAltButton.style_button(close_button) | 66 | HobAltButton.style_button(close_button) |
| 67 | close_button.connect('clicked', gtk.main_quit) | 67 | close_button.connect('clicked', gtk.main_quit) |
| 68 | 68 | ||
| 69 | make_button = self.deploy_dialog.add_button("Make USB image", gtk.RESPONSE_YES) | 69 | write_button = self.deploy_dialog.add_button("Write USB image", gtk.RESPONSE_YES) |
| 70 | HobAltButton.style_button(make_button) | 70 | HobAltButton.style_button(write_button) |
| 71 | 71 | ||
| 72 | self.deploy_dialog.connect('select_image_clicked', self.select_image_clicked_cb) | 72 | self.deploy_dialog.connect('select_image_clicked', self.select_image_clicked_cb) |
| 73 | self.deploy_dialog.connect('destroy', gtk.main_quit) | 73 | self.deploy_dialog.connect('destroy', gtk.main_quit) |
