xbps-install: don't exec a transaction if only sync mode is requested.

This commit is contained in:
Juan RP 2013-02-20 09:58:31 +01:00
parent eb61aabca8
commit 9ab97aa2cf

View File

@ -197,6 +197,9 @@ main(int argc, char **argv)
exit(rv); exit(rv);
} }
if (sync && !update && (argc == optind))
exit(EXIT_SUCCESS);
if (update && (argc == optind)) { if (update && (argc == optind)) {
/* Update all installed packages */ /* Update all installed packages */
rv = dist_upgrade(&xh, maxcols, yes, drun); rv = dist_upgrade(&xh, maxcols, yes, drun);