[oe-commits] [openembedded-core] branch master updated: runqemu: Also specialcase resolution of '.' to the file's location

git at git.openembedded.org git at git.openembedded.org
Tue Nov 21 17:59:03 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

The following commit(s) were added to refs/heads/master by this push:
     new 33418ed  runqemu: Also specialcase resolution of '.' to the file's location
33418ed is described below

commit 33418ed064fe9cff5b4803f09135a81d9170c189
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Tue Nov 21 17:56:40 2017 +0000

    runqemu: Also specialcase resolution of '.' to the file's location
    
    Similarly to handling "../", handle "." to resovle to the qemuconf
    file's current directory.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 scripts/runqemu | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/scripts/runqemu b/scripts/runqemu
index b09cf1c..cd94435 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -728,6 +728,8 @@ class BaseConfig(object):
             k_upper = k.upper()
             if v.startswith("../"):
                 v = os.path.abspath(os.path.dirname(self.qemuboot) + "/" + v)
+            elif v == ".":
+                v = os.path.dirname(self.qemuboot)
             self.set(k_upper, v)
 
     def validate_paths(self):

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list