fetch2: include PV in 'Unable to get checksum for SRC_URI entry' warnings
PATCH 1/1 fetch2: include PV in 'Unable to get checksum for SRC_URI entry' warnings
Referencing PN only is ambiguous if multiple versions of a recipe are present.
--- lib/bb/fetch2/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
lib/bb/fetch2/__init__.py +2 -2
@@ -1102,9 +1102,9 @@ def get_checksum_file_list(d): if f.startswith(dl_dir): # The local fetcher's behaviour is to return a path under DL_DIR if it couldn't find the file anywhere else if os.path.exists(f): - bb.warn("Getting checksum for %s SRC_URI entry %s: file not found except in DL_DIR" % (d.getVar('PN', True), os.path.basename(f))) + bb.warn("Getting checksum for %s SRC_URI entry %s: file not found except in DL_DIR" % (d.getVar('P', True), os.path.basename(f))) else: - bb.warn("Unable to get checksum for %s SRC_URI entry %s: file could not be found" % (d.getVar('PN', True), os.path.basename(f))) + bb.warn("Unable to get checksum for %s SRC_URI entry %s: file could not be found" % (d.getVar('P', True), os.path.basename(f))) filelist.append(f + ":" + str(os.path.exists(f))) return " ".join(filelist)
Signature · 1 line
1.9.1
Quoted 7 lines · Andre McCurdy
Referencing PN only is ambiguous if multiple versions of a recipe are present.
Signed-off-by Andre McCurdy <[email protected]>--- lib/bb/fetch2/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Now that we have recipe level messages getting a prefix during logging, do we still need this with master?
Cheers,
Richard
Quoted 2 lines · Andre McCurdy
Referencing PN only is ambiguous if multiple versions of a recipe are present.
Would it work with FILE to get immediate pointer to file where to update them?
Quoted 30 lines
Signed-off-by Andre McCurdy <[email protected]>--- lib/bb/fetch2/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)lib/bb/fetch2/__init__.py +2
-2@@ -1102,9 +1102,9 @@ def get_checksum_file_list(d): if f.startswith(dl_dir): # The local fetcher's behaviour is to return a path under DL_DIR if it couldn't find the file anywhere else if os.path.exists(f): - bb.warn("Getting checksum for %s SRC_URI entry %s: file not found except in DL_DIR" % (d.getVar('PN', True), os.path.basename(f))) + bb.warn("Getting checksum for %s SRC_URI entry %s: file not found except in DL_DIR" % (d.getVar('P', True), os.path.basename(f))) else: - bb.warn("Unable to get checksum for %s SRC_URI entry %s: file could not be found" % (d.getVar('PN', True), os.path.basename(f))) + bb.warn("Unable to get checksum for %s SRC_URI entry %s: file could not be found" % (d.getVar('P', True), os.path.basename(f))) filelist.append(f + ":" + str(os.path.exists(f))) return " ".join(filelist)Signature · 7 lines
1.9.1 -- _______________________________________________ bitbake-devel mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/bitbake-devel
Signature · 1 line
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 11 lines · Richard Purdie
Quoted 7 lines · Andre McCurdy
Referencing PN only is ambiguous if multiple versions of a recipe are present.
Signed-off-by Andre McCurdy <[email protected]>--- lib/bb/fetch2/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)Now that we have recipe level messages getting a prefix during logging, do we still need this with master?
Yes, I think so. These warnings get generated during initial parsing, not as part of executing any task.
Quoted 3 lines
Cheers,
Richard
Quoted 6 lines · Martin Jansa
Quoted 2 lines · Andre McCurdy
Referencing PN only is ambiguous if multiple versions of a recipe are present.
Would it work with FILE to get immediate pointer to file where to update them?
Yes, that works. It's a bit more verbose but having the full path to the recipe is useful.
Quoted 33 lines
Quoted 25 lines
Signed-off-by Andre McCurdy <[email protected]>--- lib/bb/fetch2/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)lib/bb/fetch2/__init__.py +2
-3@@ -1102,9 +1102,9 @@ def get_checksum_file_list(d): if f.startswith(dl_dir): # The local fetcher's behaviour is to return a path under DL_DIR if it couldn't find the file anywhere else if os.path.exists(f): - bb.warn("Getting checksum for %s SRC_URI entry %s: file not found except in DL_DIR" % (d.getVar('PN', True), os.path.basename(f))) + bb.warn("Getting checksum for %s SRC_URI entry %s: file not found except in DL_DIR" % (d.getVar('P', True), os.path.basename(f))) else: - bb.warn("Unable to get checksum for %s SRC_URI entry %s: file could not be found" % (d.getVar('PN', True), os.path.basename(f))) + bb.warn("Unable to get checksum for %s SRC_URI entry %s: file could not be found" % (d.getVar('P', True), os.path.basename(f))) filelist.append(f + ":" + str(os.path.exists(f))) return " ".join(filelist) --1.9.1
Quoted 5 lines
--
_______________________________________________
bitbake-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/bitbake-devel--
Martin 'JaMa' Jansa jabber: [email protected]
Quoted 12 lines · Andre McCurdy
Quoted 6 lines · Martin Jansa
Quoted 2 lines · Andre McCurdy
Referencing PN only is ambiguous if multiple versions of a recipe are present.
Would it work with FILE to get immediate pointer to file where to update them?
Yes, that works. It's a bit more verbose but having the full path to the recipe is useful.
It's worth noting that current bitbake master includes PN/PV in all log messages coming from tasks for the knotty UI already.