debrepack: customize the revision
In some cases (specially for test patches), we want to force the package version to be increased, so introduce a new variable "stx_patch" in "revision", like: revision: dist: $STX_DIST PKG_GITREVCOUNT: true stx_patch: 1 Test Plan: Pass: revision is increased by adding "stx_patch: number" in meta_data.yaml. Story: 2008862 Task: 46766 Signed-off-by: Luis Sampaio <luis.sampaio@windriver.com> Signed-off-by: Yue Tao <yue.tao@windriver.com> Change-Id: I107d3bb5b88cc69c701fa08d22d774728dcf3d06
This commit is contained in:
parent
245c949be7
commit
4a64688ccb
@ -323,6 +323,12 @@ class Parser():
|
||||
revision += int(run_shell_cmd(git_rev_list_from % (src_dir, gitrevcount["BASE_SRCREV"]), self.logger))
|
||||
revision += int(run_shell_cmd(git_status % src_dir, self.logger))
|
||||
|
||||
if "stx_patch" in revision_data:
|
||||
if type(revision_data['stx_patch']) is not int:
|
||||
self.logger.error("The stx_patch in meta_data.yaml is not an int value")
|
||||
raise Exception(f"The stx_patch in meta_data.yaml is not an int value")
|
||||
revision += int(revision_data["stx_patch"])
|
||||
|
||||
return dist + "." + str(revision)
|
||||
|
||||
def checksum(self, pkgpath):
|
||||
|
Loading…
x
Reference in New Issue
Block a user