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 @@
int funca(void) { return 0; }
@@ -0,0 +1 @@
int funcb(void) { return 0; }
@@ -0,0 +1 @@
int funcc(void) { return 0; }
@@ -0,0 +1,5 @@
@ECHO OFF
echo a.c
echo b.c
echo c.c
echo prog.c
@@ -0,0 +1,5 @@
#!/bin/sh
for i in *.c; do
echo $i
done
@@ -0,0 +1,5 @@
@ECHO OFF
echo suba.c
echo subb.c
echo subc.c
echo subprog.c
@@ -0,0 +1,35 @@
project('grabber', 'c')
# What this script does is NOT reliable. Simply adding a file in this directory
# will NOT make it automatically appear in the build. You have to manually
# re-invoke Meson (not just Ninja) for that to happen. The simplest way
# is to touch meson-private/coredata.dat.
# This is not the recommended way to do things, but if the tradeoffs are
# acceptable to you, then we're certainly not going to stop you. Just don't
# file bugs when it fails. :)
if build_machine.system() == 'windows'
c = run_command('grabber.bat', check: false)
grabber = find_program('grabber2.bat')
else
c = run_command('grabber.sh', check: false)
grabber = find_program('grabber.sh')
endif
# First test running command explicitly.
if c.returncode() != 0
error('Executing script failed.')
endif
newline = '''
'''
sources = c.stdout().strip().split(newline)
e = executable('prog', sources)
test('grabtest', e)
# Then test using program with find_program
subdir('subdir')
@@ -0,0 +1,7 @@
int funca(void);
int funcb(void);
int funcc(void);
int main(void) {
return funca() + funcb() + funcc();
}
@@ -0,0 +1,5 @@
sc = run_command(grabber, check: true)
subsources = sc.stdout().strip().split(newline)
se = executable('subprog', subsources)
test('subgrabtest', se)
@@ -0,0 +1 @@
int funca(void) { return 0; }
@@ -0,0 +1 @@
int funcb(void) { return 0; }
@@ -0,0 +1 @@
int funcc(void) { return 0; }
@@ -0,0 +1,7 @@
int funca(void);
int funcb(void);
int funcc(void);
int main(void) {
return funca() + funcb() + funcc();
}