From be38a51750705bba67daa430955d2332870c38a1 Mon Sep 17 00:00:00 2001 From: Judd Vinet Date: Sat, 28 Jan 2006 05:07:50 +0000 Subject: added a --noprogressbar switch for scripts to use --- src/pacman/download.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/pacman/download.c') diff --git a/src/pacman/download.c b/src/pacman/download.c index ad19f4d4..ce595495 100644 --- a/src/pacman/download.c +++ b/src/pacman/download.c @@ -64,6 +64,10 @@ static int log_progress(netbuf *ctl, int xfered, void *arg) static unsigned short mouth; static unsigned int lastcur = 0; + if(config->noprogressbar) { + return(1); + } + gettimeofday(&t1, NULL); if(xfered+offset == fsz) { t = t0; -- cgit v1.2.3