From 76828ae39ad52ba386947562f1141afae73bec15 Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Tue, 8 Jan 2013 17:00:03 +0200 Subject: [PATCH] bmaptool: fix flashing without bmap The auto-discovery function was buggy and returned a junk bmap file name if no bmap files was found. Change-Id: I2ab3db14dcccd72e687e6afb8e3cfcaa9c827452 Signed-off-by: Artem Bityutskiy --- bmaptool | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bmaptool b/bmaptool index 2d65497..25b0fca 100755 --- a/bmaptool +++ b/bmaptool @@ -81,7 +81,7 @@ def find_and_open_bmap(image_path): try: bmap_obj = TransRead.TransRead(bmap_path) bmap_obj.close() - break + return bmap_path except TransRead.Error as err: pass @@ -89,7 +89,7 @@ def find_and_open_bmap(image_path): if ext == '': break - return bmap_path + return None def copy_command_open_all(args, log): """ Open the image/bmap/destination files for the "copy" command. Returns a -- 2.7.4