xbps-install: don't exec a transaction if only sync mode is requested.
This commit is contained in:
parent
eb61aabca8
commit
9ab97aa2cf
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user