From 9ab97aa2cf02312b0361b2f5efdfa77ba15bf0ac Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 20 Feb 2013 09:58:31 +0100 Subject: [PATCH] xbps-install: don't exec a transaction if only sync mode is requested. --- bin/xbps-install/main.c | 3 +++ 1 file changed, 3 insertions(+) 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);