From f974adb86c16e42547054fe231b0269e92bdee2a Mon Sep 17 00:00:00 2001 From: root Date: Fri, 16 Feb 1996 05:35:53 +0000 Subject: [PATCH] set verbosity properly for building CVS patchset: 295 CVS date: 1996/02/16 05:35:53 --- rpm.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/rpm.c b/rpm.c index f436b34..dfc5b0d 100755 --- a/rpm.c +++ b/rpm.c @@ -137,13 +137,10 @@ void build(char * arg, int buildAmount) { Spec s; char * specfile; - setVerbosity(MESS_VERBOSE); - if (arg[0] == '/') { specfile = arg; } else { /* XXX this is broken if PWD is near 1024 */ - specfile = alloca(1024); getcwd(specfile, 1024); strcat(specfile, "/"); @@ -425,7 +422,10 @@ int main(int argc, char ** argv) { exit(0); case MODE_REBUILD: - if (optind == argc) + if (getVerbosity() == MESS_NORMAL) + setVerbosity(MESS_VERBOSE); + + if (optind == argc) argerror("no packages files given for rebuild"); while (optind < argc) { @@ -440,6 +440,9 @@ int main(int argc, char ** argv) { break; case MODE_BUILD: + if (getVerbosity() == MESS_NORMAL) + setVerbosity(MESS_VERBOSE); + if (clean) buildAmount |= RPMBUILD_SWEEP; -- 2.7.4