|
Panu Matilainen |
e62394 |
commit 6df78d16a68ff508a965ba2166f3b376e850b138
|
|
Panu Matilainen |
e62394 |
Author: Panu Matilainen <pmatilai@redhat.com>
|
|
Panu Matilainen |
e62394 |
Date: Sat Jul 19 15:27:42 2008 +0300
|
|
Panu Matilainen |
e62394 |
|
|
Panu Matilainen |
e62394 |
Fix regression in %patch handling (rhbz#455872)
|
|
Panu Matilainen |
e62394 |
- popt doesn't think of "008" as an integer, let popt think it's a string
|
|
Panu Matilainen |
e62394 |
as we do our own conversion to number anyway
|
|
Panu Matilainen |
e62394 |
|
|
Panu Matilainen |
e62394 |
diff --git a/build/parsePrep.c b/build/parsePrep.c
|
|
Panu Matilainen |
e62394 |
index 4b0ccdf..fcc28c8 100644
|
|
Panu Matilainen |
e62394 |
--- a/build/parsePrep.c
|
|
Panu Matilainen |
e62394 |
+++ b/build/parsePrep.c
|
|
Panu Matilainen |
e62394 |
@@ -403,16 +403,16 @@ static int doSetupMacro(rpmSpec spec, const char *line)
|
|
Panu Matilainen |
e62394 |
*/
|
|
Panu Matilainen |
e62394 |
static rpmRC doPatchMacro(rpmSpec spec, const char *line)
|
|
Panu Matilainen |
e62394 |
{
|
|
Panu Matilainen |
e62394 |
- char *opt_b;
|
|
Panu Matilainen |
e62394 |
+ char *opt_b, *opt_P;
|
|
Panu Matilainen |
e62394 |
char *buf = NULL;
|
|
Panu Matilainen |
e62394 |
- int opt_P, opt_p, opt_R, opt_E, opt_F;
|
|
Panu Matilainen |
e62394 |
+ int opt_p, opt_R, opt_E, opt_F;
|
|
Panu Matilainen |
e62394 |
int argc, c;
|
|
Panu Matilainen |
e62394 |
const char **argv = NULL;
|
|
Panu Matilainen |
e62394 |
ARGV_t patch, patchnums = NULL;
|
|
Panu Matilainen |
e62394 |
rpmRC rc = RPMRC_FAIL; /* assume failure */
|
|
Panu Matilainen |
e62394 |
|
|
Panu Matilainen |
e62394 |
struct poptOption const patchOpts[] = {
|
|
Panu Matilainen |
e62394 |
- { NULL, 'P', POPT_ARG_INT, &opt_P, 'P', NULL, NULL },
|
|
Panu Matilainen |
e62394 |
+ { NULL, 'P', POPT_ARG_STRING, &opt_P, 'P', NULL, NULL },
|
|
Panu Matilainen |
e62394 |
{ NULL, 'p', POPT_ARG_INT, &opt_p, 'p', NULL, NULL },
|
|
Panu Matilainen |
e62394 |
{ NULL, 'R', POPT_ARG_NONE, &opt_R, 'R', NULL, NULL },
|
|
Panu Matilainen |
e62394 |
{ NULL, 'E', POPT_ARG_NONE, &opt_E, 'E', NULL, NULL },
|