Patchwork [flasher,4/4] flasher: fix assignment of default data_dir

login
register
mail settings
Submitter Stephen Warren
Date June 14, 2013, 7:52 p.m.
Message ID <1371239544-26165-4-git-send-email-swarren@wwwdotorg.org>
Download mbox | patch
Permalink /patch/251519/
State Accepted, archived
Headers show

Comments

Stephen Warren - June 14, 2013, 7:52 p.m.
From: Stephen Warren <swarren@nvidia.com>

The default value was being assigned to a global rather than a field in
the argparser result.

Reported-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
---
 tegra-uboot-flasher | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/tegra-uboot-flasher b/tegra-uboot-flasher
index ac727a0..f1abe54 100755
--- a/tegra-uboot-flasher
+++ b/tegra-uboot-flasher
@@ -294,7 +294,7 @@  if not args.data_dir and not args.force_no_out_dir:
         if args.debug: print 'Detected build tree; using ' + out_data_dir + ' as data dir'
         args.data_dir = out_data_dir
 if not args.data_dir:
-    data_dir = '/usr/share/tegra_uboot_flasher'
+    args.data_dir = '/usr/share/tegra_uboot_flasher'
 
 load_configs(os.path.join(args.data_dir, 'configs'))