summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin Panter <vadmium à gmail·com>2012-10-23 13:32:56 +0000
committerAllan McRae <allan@archlinux.org>2013-02-09 12:43:37 +1000
commit390b08f18b4ef550230f9f4749fb52254ccba6e5 (patch)
tree6d87b2adecf5a5bfebe60b0cd65be468e51d2e82 /src
parent9aead554bca6c95fe0ef6ec86c408e3300485024 (diff)
downloadpacman-390b08f18b4ef550230f9f4749fb52254ccba6e5.tar.xz
Exit with failure status if download or installation is not confirmed
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/sync.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index 3decc40d..417773dc 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -871,6 +871,7 @@ int sync_prepare_execute(void)
confirm = yesno(_("Proceed with installation?"));
}
if(!confirm) {
+ retval = 1;
goto cleanup;
}