summaryrefslogtreecommitdiffstats
path: root/src/pacman/download.c
diff options
context:
space:
mode:
authorJudd Vinet <judd@archlinux.org>2006-01-28 06:07:50 +0100
committerJudd Vinet <judd@archlinux.org>2006-01-28 06:07:50 +0100
commitbe38a51750705bba67daa430955d2332870c38a1 (patch)
treed4428b707037c680026087a97457897356f5545a /src/pacman/download.c
parentf3c5f9b4d1eaa34c0d3893e985900b908f0b08b0 (diff)
downloadpacman-be38a51750705bba67daa430955d2332870c38a1.tar.gz
pacman-be38a51750705bba67daa430955d2332870c38a1.tar.xz
added a --noprogressbar switch for scripts to use
Diffstat (limited to 'src/pacman/download.c')
-rw-r--r--src/pacman/download.c4
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;