| Summary: | scripts/oe-git-archive: failed when running without installing gitpython package to /usr/bin/python3 | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | yeoh ee peng <ee.peng.yeoh> |
| Component: | Scripts and Tools | Assignee: | Richard Purdie <richard.purdie> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | ross.burton |
| Version: | 2.6 | ||
| Target Milestone: | 2.7 M3 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
When the needed python package was not available, it shall exit with meaningful message to remind user to install the needed python package. |
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'