diff options
author | Florian Pritz <bluewind@xssn.at> | 2010-10-01 16:42:09 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-01-31 10:49:53 -0600 |
commit | 111e07d0be44b76b910c6a004421ede4f6f6fb49 (patch) | |
tree | 65096efc6a527c7a8d84d3a1f3afdb8263cb7258 /src | |
parent | b6ec9019d77c41edd86094a867fbb3970c6b4ebe (diff) | |
download | pacman-111e07d0be44b76b910c6a004421ede4f6f6fb49.tar.xz |
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 <chantry.xavier@gmail.com>
Signed-off-by: Florian Pritz <bluewind@server-speed.net>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/pacman.c | 8 |
1 files changed, 7 insertions, 1 deletions
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; |