Skip to contentSkip to conversation

toaster: full path in variable history

PATCH In review Marius Avram 3 participants 3 messages Mar 11, 2014 – Mar 24, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toaster: full path in variable history

When an evaluation was made for a configuration file the path to the file was saved as a relative one. The change in this commit will save the location as an absolute path. This way the user will have full information regarding the location of the file where a variable was changed and the line withing the file.

[YOCTO #5562]

---
 bitbake/lib/bb/parse/parse_py/ConfHandler.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
bitbake/lib/bb/parse/parse_py/ConfHandler.py +1 -1
index f4fb2aa..978ebe4 100644
@@ -144,7 +144,7 @@ def handle(fn, data, include):
         # skip comments
         if s[0] == '#':
             continue
-        feeder(lineno, s, fn, statements)
+        feeder(lineno, s, abs_fn, statements)
 
     # DONE WITH PARSING... time to evaluate
     data.setVar('FILE', abs_fn)
Signature · 1 line
1.7.9.5
#1 lore raw
Quoted 6 lines · Marius Avram

When an evaluation was made for a configuration file the path to the file was saved as a relative one. The change in this commit will save the location as an absolute path. This way the user will have full information regarding the location of the file where a variable was changed and the line withing the file.

Quoted 6 lines

[YOCTO #5562]

---
 bitbake/lib/bb/parse/parse_py/ConfHandler.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

I've taken this since I think it should be reasonable however I did have to change the commit message since this doesn't touch toaster, it touched ConfHandler.

Cheers,

Richard

#2 lore raw

Thank you for taking care of this.

I've got this through some testing and I could not find fault :)

Thanks,
Alex

Quoted 29 lines · Richard Purdie
Quoted 3 lines · Marius Avram

When an evaluation was made for a configuration file the path to the file was saved as a relative one. The change in this commit will save the location as an absolute path. This way the user will have full

information

Quoted 9 lines

regarding the location of the file where a variable was changed and the line withing the file.

[YOCTO #5562]

---
 bitbake/lib/bb/parse/parse_py/ConfHandler.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

I've taken this since I think it should be reasonable however I did have to change the commit message since this doesn't touch toaster, it touched ConfHandler.

Cheers,

Richard

--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster

Signature · 3 lines
Alex Damian
Yocto Project
SSG / OTC