pactrans: handle trans_prepare errors

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
pactrans: allow an optional argument for --debug

Improves compatibility with pacman.  Argument is currently discarded.

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
pactrans: add --no-confirm option

--noconfirm is included as an alias for compatibility with pacman.

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
pactrans: add --sysupgrade option

Leaves --downgrade is left undocumented for the time being until the
interface is finalized.

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
pactrans: handle alpm_{add,remove}_pkg errors

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
pacsync: remove sysupgrade functionality

sysupgrade functionality has been moved to pactrans.

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
pactrans: add --ignore-pkg and --ignore-group

--ignore and --ignoregroup are included as undocumented aliases for
pacman compatibility.

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>
pactrans: remove event callback

Important events are now logged directly by alpm.

Signed-off-by: Andrew Gregory <andrew.gregory.8@gmail.com>