summaryrefslogtreecommitdiff
path: root/build/parsePrep.c
diff options
context:
space:
mode:
Diffstat (limited to 'build/parsePrep.c')
-rw-r--r--build/parsePrep.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/build/parsePrep.c b/build/parsePrep.c
index 3952acc7c..7e9105628 100644
--- a/build/parsePrep.c
+++ b/build/parsePrep.c
@@ -136,7 +136,8 @@ static char *doUntar(rpmSpec spec, uint32_t c, int quietly)
{
char *fn;
char *buf = NULL;
- char *tar, *taropts;
+ char *tar;
+ const char *taropts = ((rpmIsVerbose() && !quietly) ? "-xvvf" : "-xf");
struct Source *sp;
rpmCompressedMagic compressed = COMPRESSED_NOT;
@@ -156,9 +157,6 @@ static char *doUntar(rpmSpec spec, uint32_t c, int quietly)
fn = rpmGetPath("%{_sourcedir}/", sp->source, NULL);
- /* FIX: shrug */
- taropts = ((rpmIsVerbose() && !quietly) ? "-xvvf" : "-xf");
-
#ifdef AUTOFETCH_NOT /* XXX don't expect this code to be enabled */
/* XXX
* XXX If nosource file doesn't exist, try to fetch from url.