diff --git a/bin/xbps-install/main.c b/bin/xbps-install/main.c index 72f77c67..47ba32df 100644 --- a/bin/xbps-install/main.c +++ b/bin/xbps-install/main.c @@ -197,6 +197,9 @@ main(int argc, char **argv) exit(rv); } + if (sync && !update && (argc == optind)) + exit(EXIT_SUCCESS); + if (update && (argc == optind)) { /* Update all installed packages */ rv = dist_upgrade(&xh, maxcols, yes, drun);