From 111e07d0be44b76b910c6a004421ede4f6f6fb49 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 1 Oct 2010 16:42:09 +0200 Subject: make -d less strict; add -dd option -d skips checking the version of a dependency. -dd skips the whole dependency check. Signed-off-by: Xavier Chantry Signed-off-by: Florian Pritz Signed-off-by: Dan McGee --- src/pacman/pacman.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/pacman') diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 21d02107..984bd1b7 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -552,7 +552,13 @@ static int parsearg_query(int opt) static int parsearg_trans(int opt) { switch(opt) { - case 'd': config->flags |= PM_TRANS_FLAG_NODEPS; break; + case 'd': + if(config->flags & PM_TRANS_FLAG_NODEPVERSION) { + config->flags |= PM_TRANS_FLAG_NODEPS; + } else { + config->flags |= PM_TRANS_FLAG_NODEPVERSION; + } + break; case 'k': config->flags |= PM_TRANS_FLAG_DBONLY; break; case OP_NOPROGRESSBAR: config->noprogressbar = 1; break; case OP_NOSCRIPTLET: config->flags |= PM_TRANS_FLAG_NOSCRIPTLET; break; -- cgit v1.2.3-70-g09d2