mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
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. (From OE-Core rev: 2124ec0d9f9de2da476f0024a0ccf70da987420f) Signed-off-by: Mihai Lindner <mihai.lindner@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
6ed3e6325a
commit
095787655d
@@ -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 '..',
|
||||
|
||||
Reference in New Issue
Block a user