diff options
author | Alexey Tourbin <alexey.tourbin@gmail.com> | 2013-01-22 00:47:15 +0000 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2013-01-22 13:34:14 +0200 |
commit | 4eb824937ce536aeecdfdcab2d88e28083bba85b (patch) | |
tree | f21718721e363f716b3109b1012491b96aaee230 /rpmspec.c | |
parent | a1d9364adb556813886d91b2799217a412ac5bb0 (diff) | |
download | rpm-4eb824937ce536aeecdfdcab2d88e28083bba85b.tar.gz |
Adjust rpmspec -P to invoke non-build parse
In the query mode, rpmspecQuery puts the parser into non-build mode
by invoking rpmSpecParse with (RPMSPEC_ANYARCH|RPMSPEC_FORCE) flags.
The same flags should be applied in the parse mode, so that it is
possible to preprocess specfiles separately, i.e. without also
installing sources and patches.
Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Diffstat (limited to 'rpmspec.c')
-rw-r--r-- | rpmspec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -90,7 +90,7 @@ int main(int argc, char *argv[]) argerror(_("no arguments given for parse")); while ((spath = poptGetArg(optCon)) != NULL) { - rpmSpec spec = rpmSpecParse(spath, 0, NULL); + rpmSpec spec = rpmSpecParse(spath, (RPMSPEC_ANYARCH|RPMSPEC_FORCE), NULL); if (spec == NULL) { ec++; continue; |