diff mbox

[Branch,~linaro-image-tools/linaro-image-tools/trunk] Rev 643: Rename file after copy for FastModel.

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

Commit Message

Milo Casagrande Sept. 23, 2013, 12:55 p.m. UTC
------------------------------------------------------------
revno: 643
author: Ryan Harkin <ryan.harkin@linaro.org>
committer: Milo Casagrande <milo@ubuntu.com>
branch nick: trunk
timestamp: Mon 2013-09-23 11:55:03 +0200
message:
  Rename file after copy for FastModel.
modified:
  linaro_image_tools/media_create/boards.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
diff mbox

Patch

=== modified file 'linaro_image_tools/media_create/boards.py'
--- linaro_image_tools/media_create/boards.py	2013-09-19 15:48:23 +0000
+++ linaro_image_tools/media_create/boards.py	2013-09-23 09:55:03 +0000
@@ -1442,6 +1442,18 @@ 
                 copy_drop(filename, output_dir)
                 cmd_runner.run(["cp", "-v", filename, boot_dir],
                                as_root=True).wait()
+        # Rename the kernel from Image-* to Image
+        if k_img_data is not None:
+            cmd_runner.run(["mv", "-v",
+                           os.path.join(output_dir,
+                                        os.path.basename(k_img_data)),
+                           os.path.join(output_dir, "Image")],
+                           as_root=True).wait()
+            cmd_runner.run(["mv", "-v",
+                           os.path.join(boot_dir,
+                                        os.path.basename(k_img_data)),
+                           os.path.join(boot_dir, "Image")],
+                           as_root=True).wait()
 
 
 class SamsungConfig(BoardConfig):