WIP: strip directory name to find partition number by image name
authorŁukasz Stelmach <l.stelmach@samsung.com>
Mon, 2 Oct 2023 09:31:50 +0000 (11:31 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Mon, 2 Oct 2023 09:31:50 +0000 (11:31 +0200)
Change-Id: Iea2d1a11c33df23db1596349a928d92ca0c6e7b0
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
scripts/tizen/sd_fusing.py

index c93a81b..602efb0 100755 (executable)
@@ -619,7 +619,7 @@ def do_fuse_image_tarball(tarball, tmpd, target):
 
 def do_fuse_image(img, target):
     with open(img, 'rb') as f:
-        do_fuse_file(f, img, target)
+        do_fuse_file(f, os.path.basename(img), target)
 
 def fuse_image(args, target):
     if args.binaries is None or len(args.binaries) == 0: