From 1bd8f57a183db0b9be503eeff3027c4b8d65627d Mon Sep 17 00:00:00 2001 From: Aurelien Foret Date: Sat, 4 Mar 2006 15:33:44 +0000 Subject: - changed flags type from char to int - downloadonly implies FLAG_NOCONFLICTS --- src/pacman/conf.h | 2 +- src/pacman/pacman.c | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src/pacman') diff --git a/src/pacman/conf.h b/src/pacman/conf.h index fdd4b20a..319c75f8 100644 --- a/src/pacman/conf.h +++ b/src/pacman/conf.h @@ -52,7 +52,7 @@ typedef struct __config_t { unsigned short op_s_search; unsigned short op_s_upgrade; unsigned short group; - unsigned char flags; + unsigned int flags; unsigned short debug; /* configuration file option */ char *proxyhost; diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 18422e39..3d62ee69 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -394,7 +394,10 @@ int parseargs(int argc, char *argv[]) break; case 'u': config->op_s_upgrade = 1; break; case 'v': config->verbose++; break; - case 'w': config->op_s_downloadonly = 1; break; + case 'w': + config->op_s_downloadonly = 1; + config->flags |= PM_TRANS_FLAG_NOCONFLICTS; + break; case 'y': config->op_s_sync++; break; case '?': return(1); default: return(1); -- cgit v1.2.3-70-g09d2