fix: noconfirm auto-selects first AUR match

This commit is contained in:
2026-05-08 11:01:02 +01:00
parent d39cdc3fd9
commit 153cca6132
8056 changed files with 1983098 additions and 779 deletions
@@ -0,0 +1,20 @@
project('deprecated options',
default_options: [
'o1=false',
'o2=a,b',
'o3=a,b',
'o4=true',
'o5=auto',
'o6=false',
'o8=/foo',
]
)
assert(get_option('o1') == false)
assert(get_option('o2') == ['a', 'b'])
assert(get_option('o3') == ['c', 'b'])
assert(get_option('o4').enabled())
assert(get_option('o5') == false)
assert(get_option('o6') == false)
assert(get_option('o7').disabled())
assert(get_option('python.platlibdir') == '/foo')
@@ -0,0 +1,23 @@
# Option fully deprecated, it warns when any value is set.
option('o1', type: 'boolean', deprecated: true)
# One of the choices is deprecated, it warns only when 'a' is in the list of values.
option('o2', type: 'array', choices: ['a', 'b'], deprecated: ['a'])
# One of the choices is deprecated, it warns only when 'a' is in the list of values
# and replace it by 'c'.
option('o3', type: 'array', choices: ['a', 'b', 'c'], deprecated: {'a': 'c'})
# A boolean option has been replaced by a feature, old true/false values are remapped.
option('o4', type: 'feature', deprecated: {'true': 'enabled', 'false': 'disabled'})
# A feature option has been replaced by a boolean, enabled/disabled/auto values are remapped.
option('o5', type: 'boolean', deprecated: {'enabled': 'true', 'disabled': 'false', 'auto': 'false'})
# A boolean option has been replaced by a feature with another name, old true/false values
# are accepted by the new option for backward compatibility.
option('o6', type: 'boolean', value: true, deprecated: 'o7')
option('o7', type: 'feature', value: 'enabled', deprecated: {'true': 'enabled', 'false': 'disabled'})
# A project option is replaced by a module option
option('o8', type: 'string', value: '', deprecated: 'python.platlibdir')
@@ -0,0 +1,29 @@
{
"stdout": [
{
"line": ".*DEPRECATION: Option 'o1' is deprecated",
"match": "re",
"count": 1
},
{
"line": ".*DEPRECATION: Option 'o2' value 'a' is deprecated",
"match": "re",
"count": 1
},
{
"line": ".*DEPRECATION: Option 'o3' value 'a' is replaced by 'c'",
"match": "re",
"count": 1
},
{
"line": ".*DEPRECATION: Option 'o4' value 'true' is replaced by 'enabled'",
"match": "re",
"count": 1
},
{
"line": ".*DEPRECATION: Option 'o5' value 'auto' is replaced by 'false'",
"match": "re",
"count": 1
}
]
}