[Branch,~linaro-image-tools/linaro-image-tools/trunk] Rev 633: Fix typos

Message ID 20130806072626.341.95625.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Fathi Boudra Aug. 6, 2013, 7:26 a.m.
------------------------------------------------------------
revno: 633
committer: Fathi Boudra <fathi.boudra@linaro.org>
branch nick: linaro-image-tools
timestamp: Tue 2013-08-06 10:25:33 +0300
message:
  Fix typos
modified:
  linaro-android-media-create
  linaro_image_tools/media_create/boards.py
  linaro_image_tools/tests/test_utils.py
  linaro_image_tools/utils.py


--
lp:linaro-image-tools
https://code.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk

You are subscribed to branch lp:linaro-image-tools.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-image-tools/linaro-image-tools/trunk/+edit-subscription

Patch

=== modified file 'linaro-android-media-create'
--- linaro-android-media-create	2013-04-03 10:05:46 +0000
+++ linaro-android-media-create	2013-08-06 07:25:33 +0000
@@ -42,7 +42,7 @@ 
 from linaro_image_tools.media_create import get_android_args_parser
 from linaro_image_tools.utils import (
     additional_android_option_checks,
-    andorid_hwpack_in_boot_tarball,
+    android_hwpack_in_boot_tarball,
     ensure_command,
     get_logger,
     disable_automount,
@@ -141,7 +141,7 @@ 
 
     board_config = get_board_config(args.dev)
 
-    hwpack_exists, config_file = andorid_hwpack_in_boot_tarball(BOOT_DIR)
+    hwpack_exists, config_file = android_hwpack_in_boot_tarball(BOOT_DIR)
     if not args.hwpack and not hwpack_exists:
         # No hwpack in the boot tarball nor provided on the command line.
         logger.warning("No hwpack found in the boot tarball nor passed on "

=== modified file 'linaro_image_tools/media_create/boards.py'
--- linaro_image_tools/media_create/boards.py	2013-07-25 08:00:25 +0000
+++ linaro_image_tools/media_create/boards.py	2013-08-06 07:25:33 +0000
@@ -862,7 +862,7 @@ 
         if self.initrd:
             initrd = _get_file_matching(os.path.join(path, self.initrd))
         if not self.initrd or not initrd:
-            logger.warn("Could not find a valid initrd, skipping uInitd.")
+            logger.warn("Could not find a valid initrd, skipping uInitrd.")
 
         if self.dtb_file:
             dtb = _get_file_matching(os.path.join(path, self.dtb_file))

=== modified file 'linaro_image_tools/tests/test_utils.py'
--- linaro_image_tools/tests/test_utils.py	2013-06-27 09:04:20 +0000
+++ linaro_image_tools/tests/test_utils.py	2013-08-06 07:25:33 +0000
@@ -39,7 +39,7 @@ 
     UnableToFindPackageProvidingCommand,
     additional_android_option_checks,
     additional_option_checks,
-    andorid_hwpack_in_boot_tarball,
+    android_hwpack_in_boot_tarball,
     check_file_integrity_and_log_errors,
     ensure_command,
     find_command,
@@ -376,7 +376,7 @@ 
             expected = (True, config_file)
             with open(config_file, "w"):
                 self.assertEqual(expected,
-                                 andorid_hwpack_in_boot_tarball(tmpdir))
+                                 android_hwpack_in_boot_tarball(tmpdir))
         finally:
             os.unlink(config_file)
             os.removedirs(boot_dir)
@@ -389,7 +389,7 @@ 
             os.mkdir(boot_dir)
             config_file = os.path.join(boot_dir, "config")
             expected = (False, config_file)
-            self.assertEqual(expected, andorid_hwpack_in_boot_tarball(tmpdir))
+            self.assertEqual(expected, android_hwpack_in_boot_tarball(tmpdir))
         finally:
             os.removedirs(boot_dir)
 

=== modified file 'linaro_image_tools/utils.py'
--- linaro_image_tools/utils.py	2013-04-03 10:05:46 +0000
+++ linaro_image_tools/utils.py	2013-08-06 07:25:33 +0000
@@ -363,7 +363,7 @@ 
                 "--hwpack argument (%s) is not a regular file" % args.hwpack)
 
 
-def andorid_hwpack_in_boot_tarball(boot_dir):
+def android_hwpack_in_boot_tarball(boot_dir):
     """Simple check for existence of a path.
 
     Needed to make cli command testable in some way.