aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/plymouth/plymouth-rpmatch.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-10-27 07:19:49 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-10-27 07:32:26 +0000
commitab688b8b6e8b3fc3f465bb5465c19e2e55552a79 (patch)
treeb5029b7740b92c48b011732dcd50a3f843248551 /unmaintained/plymouth/plymouth-rpmatch.patch
parent568b537c45360875e4a1caaf0d9db2a5f3ada2c2 (diff)
downloadaports-ab688b8b6e8b3fc3f465bb5465c19e2e55552a79.tar.bz2
aports-ab688b8b6e8b3fc3f465bb5465c19e2e55552a79.tar.xz
testing/plymouth: unmaintained
Diffstat (limited to 'unmaintained/plymouth/plymouth-rpmatch.patch')
-rw-r--r--unmaintained/plymouth/plymouth-rpmatch.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/unmaintained/plymouth/plymouth-rpmatch.patch b/unmaintained/plymouth/plymouth-rpmatch.patch
new file mode 100644
index 0000000000..f6e1948747
--- /dev/null
+++ b/unmaintained/plymouth/plymouth-rpmatch.patch
@@ -0,0 +1,17 @@
+--- plymouth-0.8.3.orig/src/libply/ply-command-parser.c
++++ plymouth-0.8.3/src/libply/ply-command-parser.c
+@@ -671,6 +671,14 @@
+ return argument[0] == '-' && argument[1] == '-';
+ }
+
++static inline int
++rpmatch (const char *response)
++{
++ /* Test against "^[yY]" and "^[nN]", hardcoded to avoid requiring regex */
++ return (*response == 'y' || *response == 'Y' ? 1
++ : *response == 'n' || *response == 'N' ? 0 : -1);
++}
++
+ static bool
+ ply_command_option_read_arguments (ply_command_option_t *option,
+ ply_list_t *arguments)