Bug 13082 - scripts/oe-git-archive: failed when running without installing gitpython package to /usr/bin/python3
Summary: scripts/oe-git-archive: failed when running without installing gitpython pack...
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.6
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.7 M3
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2018-12-13 06:45 UTC by yeoh ee peng
Modified: 2019-02-22 01:02 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeoh ee peng 2018-12-13 06:45:15 UTC
During using oe-git-archive, we discovered that it failed when running it without installing gitpython package to /usr/bin/python3

Steps to reproduce the error:

Step 01: source oe-init-build-env

Step 02: run oe-git-archive
oe-git-archive <file dir to archive> -g <dir to git archive> -b <git branch>

Traceback (most recent call last):
  File "/home/<user>/poky/scripts/oe-git-archive", line 271, in <module>
    sys.exit(main())
  File "/home/<user>/poky/scripts/oe-git-archive", line 229, in main
    'commit_count': metadata['layers']['meta']['commit_count'],
KeyError: 'commit_count'
Comment 1 yeoh ee peng 2018-12-13 06:49:12 UTC
When the needed python package was not available, it shall exit with meaningful message to remind user to install the needed python package.