mirror of
https://github.com/clearlinux/common.git
synced 2026-04-28 11:03:48 +00:00
Make catchup- a little bit more flexible with tag names
We support tag names like
${package}-${version}
${package}-v${version}
${version}
v${version}
Now add support for things like
${package}-foo-bar-${version}
foo-bar-${version}
for example:
vulkan-sdk-1.3.275.0 for SPIRV-Headers
This commit is contained in:
@@ -610,7 +610,7 @@ catchup-%:
|
||||
fi; \
|
||||
version=$$(rpm -q --qf '%{VERSION}\n' --specfile $(SPECFILE) | head -1); \
|
||||
echo "Version: $${version}"; \
|
||||
current_tag=$$(git -C results/$(PKG_NAME) tag --list | grep -E "^($(PKG_NAME)-)?v?$${version}$$") || { \
|
||||
current_tag=$$(git -C results/$(PKG_NAME) tag --list | grep -E "^($(PKG_NAME)-)?(.+-|v)?$${version}$$") || { \
|
||||
echo "Error: No tag found for current package version"; \
|
||||
exit 1; \
|
||||
}; \
|
||||
|
||||
Reference in New Issue
Block a user