All of lore.kernel.org
 help / color / mirror / Atom feed
* [1.50][PATCH 0/2] review request
@ 2021-07-06  8:30 Anuj Mittal
  2021-07-06  8:30 ` [1.50][PATCH 1/2] fetch/svn: Fix parsing revision of SVN repos with redirects Anuj Mittal
  2021-07-06  8:30 ` [1.50][PATCH 2/2] fetch2: add check for empty SRC_URI hash string Anuj Mittal
  0 siblings, 2 replies; 3+ messages in thread
From: Anuj Mittal @ 2021-07-06  8:30 UTC (permalink / raw)
  To: bitbake-devel

Please review these changes for 1.50/hardknott.

Thanks,

Anuj

The following changes since commit 0c83e98b0b4129e43e05129074fff60b22a9f2eb:

  server/process: Handle error in heartbeat funciton in OOM case (2021-05-20 21:40:00 +0100)

are available in the Git repository at:

  git://push.openembedded.org/bitbake-contrib stable/1.50-next

Harald Brinkmann (1):
  fetch/svn: Fix parsing revision of SVN repos with redirects

Scott Weaver (1):
  fetch2: add check for empty SRC_URI hash string

 lib/bb/fetch2/__init__.py | 5 ++++-
 lib/bb/fetch2/svn.py      | 2 +-
 2 files changed, 5 insertions(+), 2 deletions(-)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [1.50][PATCH 1/2] fetch/svn: Fix parsing revision of SVN repos with redirects
  2021-07-06  8:30 [1.50][PATCH 0/2] review request Anuj Mittal
@ 2021-07-06  8:30 ` Anuj Mittal
  2021-07-06  8:30 ` [1.50][PATCH 2/2] fetch2: add check for empty SRC_URI hash string Anuj Mittal
  1 sibling, 0 replies; 3+ messages in thread
From: Anuj Mittal @ 2021-07-06  8:30 UTC (permalink / raw)
  To: bitbake-devel

From: Harald Brinkmann <harald.brinkmann@detectomat.com>

svn was printing a message when encountering HTTP redirects.
This confused the revision parser.

Signed-off-by: Harald Brinkmann <Harald.Brinkmann@detectomat.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a944a335f8f4c4fe5df55f3d7d8e757bd2835146)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
---
 lib/bb/fetch2/svn.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/fetch2/svn.py b/lib/bb/fetch2/svn.py
index 8856ef1c6..80102b44f 100644
--- a/lib/bb/fetch2/svn.py
+++ b/lib/bb/fetch2/svn.py
@@ -86,7 +86,7 @@ class Svn(FetchMethod):
         if command == "info":
             svncmd = "%s info %s %s://%s/%s/" % (ud.basecmd, " ".join(options), proto, svnroot, ud.module)
         elif command == "log1":
-            svncmd = "%s log --limit 1 %s %s://%s/%s/" % (ud.basecmd, " ".join(options), proto, svnroot, ud.module)
+            svncmd = "%s log --limit 1 --quiet %s %s://%s/%s/" % (ud.basecmd, " ".join(options), proto, svnroot, ud.module)
         else:
             suffix = ""
 
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [1.50][PATCH 2/2] fetch2: add check for empty SRC_URI hash string
  2021-07-06  8:30 [1.50][PATCH 0/2] review request Anuj Mittal
  2021-07-06  8:30 ` [1.50][PATCH 1/2] fetch/svn: Fix parsing revision of SVN repos with redirects Anuj Mittal
@ 2021-07-06  8:30 ` Anuj Mittal
  1 sibling, 0 replies; 3+ messages in thread
From: Anuj Mittal @ 2021-07-06  8:30 UTC (permalink / raw)
  To: bitbake-devel

From: Scott Weaver <weaverjs@gmail.com>

No error was being reported when the hash string was set to empty.
For example: SRC_URI[md5sum] = ""

On a related note (not a bug):
Because whitespace in the string will result in a checksum mismatch, the error
message was updated to make it a little clearer why the error was thrown.
For example: SRC_URI[md5sum] = " " or
SRC_URI[md5sum] = " 209f8326f5137d8817a6276d9577a2f1"

Now creates a message like this:
File: '/home/scott/yocto-cache/downloads/rsync-3.2.3.tar.gz' has md5
checksum '209f8326f5137d8817a6276d9577a2f1' when ' 209f8326f5137d8817a6276d9577a2f1' was expected

[YOCTO #14232]

Signed-off-by: Scott Weaver <weaverjs@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit a13510d0028e234ea2f4744b0d0c38558395c70f)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
---
 lib/bb/fetch2/__init__.py | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index cf0201c49..c8e91262a 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -562,6 +562,9 @@ def verify_checksum(ud, d, precomputed={}):
 
         checksum_expected = getattr(ud, "%s_expected" % checksum_id)
 
+        if checksum_expected == '':
+            checksum_expected = None
+
         return {
             "id": checksum_id,
             "name": checksum_name,
@@ -612,7 +615,7 @@ def verify_checksum(ud, d, precomputed={}):
 
     for ci in checksum_infos:
         if ci["expected"] and ci["expected"] != ci["data"]:
-            messages.append("File: '%s' has %s checksum %s when %s was " \
+            messages.append("File: '%s' has %s checksum '%s' when '%s' was " \
                             "expected" % (ud.localpath, ci["id"], ci["data"], ci["expected"]))
             bad_checksum = ci["data"]
 
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-06  8:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-06  8:30 [1.50][PATCH 0/2] review request Anuj Mittal
2021-07-06  8:30 ` [1.50][PATCH 1/2] fetch/svn: Fix parsing revision of SVN repos with redirects Anuj Mittal
2021-07-06  8:30 ` [1.50][PATCH 2/2] fetch2: add check for empty SRC_URI hash string Anuj Mittal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.