summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2020-05-19 19:10:31 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-05-21 10:52:07 +0100
commitc4087787bc8daf0edbb08557f84f0cb19dab3556 (patch)
tree6a29eee5ef97327c0f14f76ff4e99b63187a8c44
parentdb888b58be121900bb866f6654149afd44cea4d6 (diff)
downloadpoky-c4087787bc8daf0edbb08557f84f0cb19dab3556.tar.gz
devtool: do not write md5sums into upgraded recipes
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] (From OE-Core rev: 1609e77a4db04a4c01cbbff17261cd57e8f816ee) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb.upgraded1
-rw-r--r--scripts/lib/devtool/upgrade.py4
2 files changed, 2 insertions, 3 deletions
diff --git a/meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb.upgraded b/meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb.upgraded
index 66e45c7e84..d75df0c8c7 100644
--- a/meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb.upgraded
+++ b/meta-selftest/recipes-test/devtool/devtool-upgrade-test1_1.5.3.bb.upgraded
@@ -9,7 +9,6 @@ SRC_URI = "http://www.ivarch.com/programs/sources/pv-${PV}.tar.gz \
9UPSTREAM_CHECK_URI = "http://www.ivarch.com/programs/pv.shtml" 9UPSTREAM_CHECK_URI = "http://www.ivarch.com/programs/pv.shtml"
10RECIPE_NO_UPDATE_REASON = "This recipe is used to test devtool upgrade feature" 10RECIPE_NO_UPDATE_REASON = "This recipe is used to test devtool upgrade feature"
11 11
12SRC_URI[md5sum] = "062bca5ff33df1dd09472e7fc3bbe332"
13SRC_URI[sha256sum] = "9dd45391806b0ed215abee4c5ac1597d018c386fe9c1f5afd2f6bc3b07fd82c3" 12SRC_URI[sha256sum] = "9dd45391806b0ed215abee4c5ac1597d018c386fe9c1f5afd2f6bc3b07fd82c3"
14 13
15S = "${WORKDIR}/pv-${PV}" 14S = "${WORKDIR}/pv-${PV}"
diff --git a/scripts/lib/devtool/upgrade.py b/scripts/lib/devtool/upgrade.py
index cb6dce378a..f962a71e41 100644
--- a/scripts/lib/devtool/upgrade.py
+++ b/scripts/lib/devtool/upgrade.py
@@ -391,12 +391,12 @@ def _create_new_recipe(newpv, md5, sha256, srcrev, srcbranch, srcsubdir_old, src
391 newvalues['SRC_URI[%s.md5sum]' % name] = None 391 newvalues['SRC_URI[%s.md5sum]' % name] = None
392 newvalues['SRC_URI[%s.sha256sum]' % name] = None 392 newvalues['SRC_URI[%s.sha256sum]' % name] = None
393 393
394 if md5 and sha256: 394 if sha256:
395 if addnames: 395 if addnames:
396 nameprefix = '%s.' % addnames[0] 396 nameprefix = '%s.' % addnames[0]
397 else: 397 else:
398 nameprefix = '' 398 nameprefix = ''
399 newvalues['SRC_URI[%smd5sum]' % nameprefix] = md5 399 newvalues['SRC_URI[%smd5sum]' % nameprefix] = None
400 newvalues['SRC_URI[%ssha256sum]' % nameprefix] = sha256 400 newvalues['SRC_URI[%ssha256sum]' % nameprefix] = sha256
401 401
402 if srcsubdir_new != srcsubdir_old: 402 if srcsubdir_new != srcsubdir_old: