Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for PAN hotfix releases. #281

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

samburney
Copy link

Minor regular expression update to support hotfix releases.

An example of this is PA-VM-KVM-11.1.2-h3.qcow2.

@@ -6,7 +6,7 @@ IMAGE_GLOB=*.qcow2
# match versions like:
# PA-VNM-KVM-7.0.1.qcow2
# PA-VM-KVM-10.0.6.qcow2
VERSION=$(shell echo $(IMAGE) | sed -e 's/.*-\([0-9]\{1,2\}\.[0-9]\{1,2\}.[0-9]\{1,2\}\)\.qcow2$$/\1/')
VERSION=$(shell echo $(IMAGE) | sed -e 's/.*-\([0-9]\{1,2\}\.[0-9]\{1,2\}.[0-9]\{1,2\}\(\|-h[0-9]\{1,2\}\)\)\.qcow2$$/\1/')
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for some platforms we started to move away from the arcane sed/grep expressions in favor of a more simple one where a user renames the image to have a simple versioning scheme. Like this:

https://github.com/hellt/vrnetlab/blob/master/huawei_vrp/Makefile#L9

it makes it easier for us (and users) to just rename the qcow to have a predefined prefix, and then format the version the way that want it to be

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants