diff options
author | Judd Vinet <judd@archlinux.org> | 2006-02-03 00:39:53 +0100 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2006-02-03 00:39:53 +0100 |
commit | ec1fc664c9e806b1850a637336ad7c56a8931962 (patch) | |
tree | 36edf5ffc492d188b2149d465faa7f39b9d32ec0 /src/pacsync.c | |
parent | 1bcc87c3feb41dc8004c3d600e3a3501a4060b44 (diff) | |
download | pacman-ec1fc664c9e806b1850a637336ad7c56a8931962.tar.gz pacman-ec1fc664c9e806b1850a637336ad7c56a8931962.tar.xz |
Imported from pacman-2.9.8.tar.gz
Diffstat (limited to 'src/pacsync.c')
-rw-r--r-- | src/pacsync.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pacsync.c b/src/pacsync.c index 4b1f1b53..0091dbdc 100644 --- a/src/pacsync.c +++ b/src/pacsync.c @@ -1,7 +1,7 @@ /* * pacsync.c * - * Copyright (c) 2002-2005 by Judd Vinet <jvinet@zeroflux.org> + * Copyright (c) 2002-2006 by Judd Vinet <jvinet@zeroflux.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -52,6 +52,7 @@ extern char *pmo_xfercommand; extern unsigned short pmo_proxyport; extern unsigned short pmo_nopassiveftp; +extern unsigned short pmo_noprogressbar; extern unsigned short pmo_chomp; /* sync servers */ @@ -483,6 +484,10 @@ static int log_progress(netbuf *ctl, int xfered, void *arg) static unsigned short mouth; static unsigned int lastcur = 0; + if(pmo_noprogressbar) { + return(1); + } + gettimeofday(&t1, NULL); if(xfered+offset == fsz) { t = t0; |