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,5 @@
#include <foo.h>
int main(void) {
return foo_process();
}
@@ -0,0 +1,3 @@
barexe = executable('bar', 'main.c',
include_directories: incfoo,
link_with: libfoo)
@@ -0,0 +1,6 @@
#include "foo.h"
int
foo_process(void) {
return 42;
}
@@ -0,0 +1,14 @@
#pragma once
#if defined _WIN32 || defined __CYGWIN__
#define DLL_PUBLIC __declspec(dllexport)
#else
#if defined __GNUC__
#define DLL_PUBLIC __attribute__ ((visibility("default")))
#else
#pragma message ("Compiler does not support symbol visibility.")
#define DLL_PUBLIC
#endif
#endif
DLL_PUBLIC int foo_process(void);
@@ -0,0 +1,3 @@
incfoo = include_directories('.')
libfoo = library('foo', 'foo.c')
@@ -0,0 +1,5 @@
project('test argument extra paths', 'c')
subdir('lib')
subdir('exe')
subdir('test')
@@ -0,0 +1,3 @@
python3 = find_program('python3')
test('run_exe', python3, args: [files('test_run_exe.py')[0], barexe])
@@ -0,0 +1,12 @@
import subprocess
import argparse
import sys
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('prog')
args = parser.parse_args()
res = subprocess.run(args.prog)
sys.exit(res.returncode - 42)