summaryrefslogtreecommitdiffstats
path: root/classes/image_repo_manifest.bbclass
diff options
context:
space:
mode:
authorPatrick Vacek <patrickvacek@gmail.com>2020-09-04 09:45:51 +0200
committerGitHub <noreply@github.com>2020-09-04 09:45:51 +0200
commit805e2c6f15cebc3dba2431f362b52c508eda8c5f (patch)
tree19677c1d3145d064da883c2211a7c0da56f7fbf9 /classes/image_repo_manifest.bbclass
parentaf3b1dbd6cef901a2a0db8686231b037758d4c86 (diff)
parent79dc91f40bd90b16d2e06e7c9dccf99560db54c9 (diff)
downloadmeta-updater-805e2c6f15cebc3dba2431f362b52c508eda8c5f.tar.gz
Merge pull request #767 from advancedtelematic/feat/dunfell/2020.9
Feat/dunfell/2020.9
Diffstat (limited to 'classes/image_repo_manifest.bbclass')
-rw-r--r--classes/image_repo_manifest.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/classes/image_repo_manifest.bbclass b/classes/image_repo_manifest.bbclass
index 72dc28f..12f56f0 100644
--- a/classes/image_repo_manifest.bbclass
+++ b/classes/image_repo_manifest.bbclass
@@ -9,10 +9,13 @@
9# For more information, see: 9# For more information, see:
10# https://web.archive.org/web/20161224194009/https://wiki.cyanogenmod.org/w/Doc:_Using_manifests 10# https://web.archive.org/web/20161224194009/https://wiki.cyanogenmod.org/w/Doc:_Using_manifests
11 11
12inherit python3native
13
12# Write build information to target filesystem 14# Write build information to target filesystem
13buildinfo_manifest () { 15buildinfo_manifest () {
14 if [ $(which repo) ]; then 16 repotool=`which repo || true`
15 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"
16 else 19 else
17 bbwarn "Android repo tool not found; manifest not copied." 20 bbwarn "Android repo tool not found; manifest not copied."
18 fi 21 fi