diff options
author | Judd Vinet <judd@archlinux.org> | 2006-01-28 05:07:50 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2006-01-28 05:07:50 +0000 |
commit | be38a51750705bba67daa430955d2332870c38a1 (patch) | |
tree | d4428b707037c680026087a97457897356f5545a /src/pacman/download.c | |
parent | f3c5f9b4d1eaa34c0d3893e985900b908f0b08b0 (diff) |
added a --noprogressbar switch for scripts to use
Diffstat (limited to 'src/pacman/download.c')
-rw-r--r-- | src/pacman/download.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |