summaryrefslogtreecommitdiff
path: root/rpmspec.c
diff options
context:
space:
mode:
authorAlexey Tourbin <alexey.tourbin@gmail.com>2013-01-22 00:47:15 +0000
committerPanu Matilainen <pmatilai@redhat.com>2013-01-22 13:34:14 +0200
commit4eb824937ce536aeecdfdcab2d88e28083bba85b (patch)
treef21718721e363f716b3109b1012491b96aaee230 /rpmspec.c
parenta1d9364adb556813886d91b2799217a412ac5bb0 (diff)
downloadrpm-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpmspec.c b/rpmspec.c
index f7f6962d2..2027ffabf 100644
--- a/rpmspec.c
+++ b/rpmspec.c
@@ -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;