]> code.ossystems Code Review - openembedded-core.git/commit
devtool: fix devtool upgrade with reproducible_builds class
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Tue, 19 Nov 2019 10:52:52 +0000 (23:52 +1300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Nov 2019 23:06:08 +0000 (23:06 +0000)
commit0d642861cd9cf034b8d4951433980addc215d4fd
treeea08d7bd241d41cc3a57d879e738e1f1f21abda8
parent5cf40fd1b3f004bd796d220c125271f245065605
devtool: fix devtool upgrade with reproducible_builds class

If the reproducible_build class is inherited then there may be a
"source-date-epoch" subdirectory in a fetched source tree; devtool
upgrade was not expecting that in the upgraded source. Take a small
snippet of code from recipetool create which already handles this,
and make it a shared function that can be used in both places.

Additionally, fix an assumption that the source is always in a
subdirectory in the cleanup code that blocked debugging this.

[YOCTO #13635]

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/devtool/upgrade.py
scripts/lib/recipetool/create.py
scripts/lib/scriptutils.py