diff options
author | Timo Teräs <timo.teras@iki.fi> | 2017-01-31 11:26:37 +0200 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-01-31 11:26:37 +0200 |
commit | 88722fca6c4d08fa5d294c9d0981d5f36c511528 (patch) | |
tree | a6a77ed950dc63f2fce88d8af7d3f2249b324c42 /community/plymouth/plymouth-rpmatch.patch | |
parent | cf0a5d75f1fd50eb08833397df5bb889938faa9f (diff) | |
download | aports-88722fca6c4d08fa5d294c9d0981d5f36c511528.tar.bz2 aports-88722fca6c4d08fa5d294c9d0981d5f36c511528.tar.xz |
community/plymouth: moved from testing
Diffstat (limited to 'community/plymouth/plymouth-rpmatch.patch')
-rw-r--r-- | community/plymouth/plymouth-rpmatch.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/community/plymouth/plymouth-rpmatch.patch b/community/plymouth/plymouth-rpmatch.patch new file mode 100644 index 0000000000..f6e1948747 --- /dev/null +++ b/community/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) |