]> code.ossystems Code Review - openembedded-core.git/commitdiff
devtool: do not write md5sums into upgraded recipes
authorAlexander Kanavin <alex.kanavin@gmail.com>
Tue, 19 May 2020 17:10:31 +0000 (19:10 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 May 2020 09:49:12 +0000 (10:49 +0100)
This will drop them md5sums from recipes that still have them,
and will not re-add them for recipes where they're already
removed.

[RP: Added fix for the test recipe]
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb.upgraded
scripts/lib/devtool/upgrade.py

index 66e45c7e846de892b6c84850c8a0f28cca6bcaaa..d75df0c8c7eb3b17757fee2cc47c29295126a037 100644 (file)
@@ -9,7 +9,6 @@ SRC_URI = "http://www.ivarch.com/programs/sources/pv-${PV}.tar.gz \
 UPSTREAM_CHECK_URI = "http://www.ivarch.com/programs/pv.shtml"
 RECIPE_NO_UPDATE_REASON = "This recipe is used to test devtool upgrade feature"
 
-SRC_URI[md5sum] = "062bca5ff33df1dd09472e7fc3bbe332"
 SRC_URI[sha256sum] = "9dd45391806b0ed215abee4c5ac1597d018c386fe9c1f5afd2f6bc3b07fd82c3"
 
 S = "${WORKDIR}/pv-${PV}"
index cb6dce378a4179097721ed1567b8db2cfb2463ba..f962a71e41a9d6486b666b8fd8c4f7b52d77f8df 100644 (file)
@@ -391,12 +391,12 @@ def _create_new_recipe(newpv, md5, sha256, srcrev, srcbranch, srcsubdir_old, src
             newvalues['SRC_URI[%s.md5sum]' % name] = None
             newvalues['SRC_URI[%s.sha256sum]' % name] = None
 
-    if md5 and sha256:
+    if sha256:
         if addnames:
             nameprefix = '%s.' % addnames[0]
         else:
             nameprefix = ''
-        newvalues['SRC_URI[%smd5sum]' % nameprefix] = md5
+        newvalues['SRC_URI[%smd5sum]' % nameprefix] = None
         newvalues['SRC_URI[%ssha256sum]' % nameprefix] = sha256
 
     if srcsubdir_new != srcsubdir_old: