-
Notifications
You must be signed in to change notification settings - Fork 372
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5840 from kit-ty-kate/pkg-name-plusplus
Hijack the %{?val_if_true:val_if_false}% syntax to support extending the variables of packages with + in their name
- Loading branch information
Showing
10 changed files
with
331 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -387,6 +387,19 @@ messages: "foo" { bar:innerenv } | |
### opam lint ./lint.opam | ||
${BASEDIR}/lint.opam: Warnings. | ||
warning 41: Some packages are mentioned in package scripts or features, but there is no dependency or depopt toward them: "bar" | ||
### <lint.opam> | ||
opam-version: "2.0" | ||
synopsis: "A word" | ||
description: "Two words." | ||
authors: "the testing team" | ||
homepage: "egapemoh" | ||
maintainer: "[email protected]" | ||
license: "ISC" | ||
dev-repo: "hg+https://[email protected]" | ||
bug-reports: "https://nobug" | ||
messages: "foo" { bar:installed } | ||
### opam lint ./lint.opam | ||
${BASEDIR}/lint.opam: Passed. | ||
### : E42: The 'dev-repo:' field doesn't use version control. You should use URLs of the form "git://", "git+https://", "hg+https://"... | ||
### <lint.opam> | ||
opam-version: "2.0" | ||
|
@@ -929,3 +942,23 @@ bug-reports: "https://nobug" | |
### opam lint ./lint.opam | ||
${BASEDIR}/lint.opam: Warnings. | ||
warning 68: Missing field 'license' | ||
### : W69: Package name in variable in string interpolation contains several '+' | ||
### <lint.opam> | ||
opam-version: "2.0" | ||
name: "conf-g++" | ||
synopsis: "A word" | ||
description: "Two words." | ||
authors: "the testing team" | ||
homepage: "egapemoh" | ||
maintainer: "[email protected]" | ||
license: "ISC" | ||
dev-repo: "hg+https://[email protected]" | ||
bug-reports: "https://nobug" | ||
messages: [ | ||
"foo" { "%{?conf-c++:installed:}%" } | ||
"bar" { "%{conf-g++:installed}%" } | ||
"baz" { "%{abc+xyz+jkl:installed}%" } | ||
] | ||
### opam lint ./lint.opam | ||
${BASEDIR}/lint.opam: Warnings. | ||
warning 69: Package name in variable in string interpolation contains several '+', use: "'?conf-g++:installed:' instead of 'conf-g++:installed'" |
Oops, something went wrong.