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

Allow arbitrary version / checksum comparison expression #16

Open
Ortham opened this issue Apr 12, 2022 · 0 comments
Open

Allow arbitrary version / checksum comparison expression #16

Ortham opened this issue Apr 12, 2022 · 0 comments

Comments

@Ortham
Copy link
Member

Ortham commented Apr 12, 2022

donmac on Discord recently asked if it's possible to write a condition like version('plugin1.esp',version(plugin2.esp), !=). It's not, but I can see it being useful.

It might be worth changing the syntax so that version(path, literal, comparator) becomes version(path) comparator literal like is more usually seen in programming languages. version(path) would return the equivalent of an Option<Version>, where Version is a String that's compared as a version according to the metadata syntax rules. The same would be done for product_version().

The same kind of thing could be done for checksum(), which could be made to return a Option<CRC> where CRC is a String which can only be compared for equality or inequality.

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

No branches or pull requests

1 participant