From: Mihai Lindner Date: Tue, 19 Jul 2022 12:11:23 +0000 (+0300) Subject: wic/plugins/rootfs: Fix NameError for 'orig_path' X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~3571 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2124ec0d9f9de2da476f0024a0ccf70da987420f;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git wic/plugins/rootfs: Fix NameError for 'orig_path' Fix "NameError: name 'orig_path' is not defined". It's a typo from when this error was handled outside this function. Signed-off-by: Mihai Lindner Signed-off-by: Alexandre Belloni Signed-off-by: Richard Purdie --- diff --git a/scripts/lib/wic/plugins/source/rootfs.py b/scripts/lib/wic/plugins/source/rootfs.py index 25bb41dd702..fc06312ee48 100644 --- a/scripts/lib/wic/plugins/source/rootfs.py +++ b/scripts/lib/wic/plugins/source/rootfs.py @@ -35,7 +35,7 @@ class RootfsPlugin(SourcePlugin): @staticmethod def __validate_path(cmd, rootfs_dir, path): if os.path.isabs(path): - logger.error("%s: Must be relative: %s" % (cmd, orig_path)) + logger.error("%s: Must be relative: %s" % (cmd, path)) sys.exit(1) # Disallow climbing outside of parent directory using '..',