diff options
author | Xavier Chantry <shiningxc@gmail.com> | 2008-05-28 22:55:03 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2008-06-04 16:25:31 -0500 |
commit | d030d12542dabfe0b6c648f48d2ff08b4feb4d41 (patch) | |
tree | d660e45f69329b76f3483dee3018d80199ed4918 /lib/libalpm/po/POTFILES.in | |
parent | 0966c33a72ce172526762ac988ee6edbbba07b52 (diff) |
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 'lib/libalpm/po/POTFILES.in')
0 files changed, 0 insertions, 0 deletions