diff options
author | Patrick Vacek <patrickvacek@gmail.com> | 2020-08-11 10:27:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-11 10:27:34 +0200 |
commit | 19eeae53684dceba15ffc688f4fe379663d1f7ec (patch) | |
tree | e205dc8c4933c75aa0c939fd4e579adae4800abc /classes | |
parent | ab264978fd125e343529f48b5251121173084657 (diff) | |
parent | 235da14ba5f365e7890ea456718eb26323c5a158 (diff) | |
download | meta-updater-19eeae53684dceba15ffc688f4fe379663d1f7ec.tar.gz |
Merge pull request #762 from liuming50/fix-a-repo-tool-failed-issue
image_repo_manifest.bbclass: explicitly call python3
Diffstat (limited to 'classes')
-rw-r--r-- | classes/image_repo_manifest.bbclass | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/classes/image_repo_manifest.bbclass b/classes/image_repo_manifest.bbclass index 47692df..795f41f 100644 --- a/classes/image_repo_manifest.bbclass +++ b/classes/image_repo_manifest.bbclass | |||
@@ -13,8 +13,9 @@ inherit python3native | |||
13 | 13 | ||
14 | # Write build information to target filesystem | 14 | # Write build information to target filesystem |
15 | buildinfo_manifest () { | 15 | buildinfo_manifest () { |
16 | if [ $(which repo) ]; then | 16 | repotool=$(which repo) |
17 | repo manifest --revision-as-HEAD -o ${IMAGE_ROOTFS}${sysconfdir}/manifest.xml || bbwarn "Android repo tool failed to run; manifest not copied" | 17 | if [ -n "$repotool" ]; then |
18 | python3 $repotool manifest --revision-as-HEAD -o ${IMAGE_ROOTFS}${sysconfdir}/manifest.xml || bbwarn "Android repo tool failed to run; manifest not copied" | ||
18 | else | 19 | else |
19 | bbwarn "Android repo tool not found; manifest not copied." | 20 | bbwarn "Android repo tool not found; manifest not copied." |
20 | fi | 21 | fi |