diff options
Diffstat (limited to 'classes/image_repo_manifest.bbclass')
-rw-r--r-- | classes/image_repo_manifest.bbclass | 7 |
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 | ||
12 | inherit python3native | ||
13 | |||
12 | # Write build information to target filesystem | 14 | # Write build information to target filesystem |
13 | buildinfo_manifest () { | 15 | buildinfo_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 |