Skip to contentSkip to conversation

fetch2: include PV in 'Unable to get checksum for SRC_URI entry' warnings

PATCH In review Andre McCurdy 4 participants 6 messages Mar 10, 2016

lore
Share & tools
lore
#0 lore raw

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
index f86014c..124420d 100644
@@ -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
#1 lore raw
Quoted 7 lines · Andre McCurdy

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(-)

Now that we have recipe level messages getting a prefix during logging, do we still need this with master?

Cheers,

Richard

#2 lore raw
Quoted 11 lines · Richard Purdie
Quoted 7 lines · Andre McCurdy

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(-)

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

#3 lore raw
In reply to Andre McCurdy
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
---
 lib/bb/fetch2/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/bb/fetch2/__init__.py +2 -2
index f86014c..124420d 100644
@@ -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]
#4 lore raw
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
---
 lib/bb/fetch2/__init__.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
lib/bb/fetch2/__init__.py +2 -3
index f86014c..124420d 100644
@@ -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]

#5 lore raw
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.