summaryrefslogtreecommitdiffstats
path: root/mkinstalldirs
diff options
context:
space:
mode:
authorXavier Chantry <shiningxc@gmail.com>2008-05-28 22:55:03 +0200
committerDan McGee <dan@archlinux.org>2008-06-04 23:25:31 +0200
commitd030d12542dabfe0b6c648f48d2ff08b4feb4d41 (patch)
treed660e45f69329b76f3483dee3018d80199ed4918 /mkinstalldirs
parent0966c33a72ce172526762ac988ee6edbbba07b52 (diff)
downloadpacman-d030d12542dabfe0b6c648f48d2ff08b4feb4d41.tar.gz
pacman-d030d12542dabfe0b6c648f48d2ff08b4feb4d41.tar.xz
src/pacman/sync.c : cleanup of pacman_sync
By putting the search / group / info / list operations just after the -Sy op, we can simplify several checks : 1) the check for "missing targets". Since we took care of the above operations, we now have less cases to consider : * -Syu or -Su : we can proceed * -Sy : we can end now (this is actually a bugfix) * -S : this op requires targets, so exit with an error 2) the check to see if a transaction is needed. If we arrive at the end of the function, it is either because we have -Su or -S <targets> so we already know a transaction is needed there. Signed-off-by: Xavier Chantry <shiningxc@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mkinstalldirs')
0 files changed, 0 insertions, 0 deletions