summaryrefslogtreecommitdiff
path: root/src/apk.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-04-19 08:55:40 +0300
committerTimo Teräs <timo.teras@iki.fi>2016-04-19 08:55:58 +0300
commitf9b4fb469b3df10c3cdfb0740225dd430bf90565 (patch)
treec11dd41aa026429573a0e89bad02e88574c032b7 /src/apk.c
parent9039dbe06cfe123d04c3306f7316ba91013fc5e6 (diff)
downloadapk-tools-f9b4fb469b3df10c3cdfb0740225dd430bf90565.tar.gz
apk-tools-f9b4fb469b3df10c3cdfb0740225dd430bf90565.tar.bz2
apk-tools-f9b4fb469b3df10c3cdfb0740225dd430bf90565.tar.xz
apk-tools-f9b4fb469b3df10c3cdfb0740225dd430bf90565.zip
apk: don't exit with error code for -V and --print-arch
Diffstat (limited to 'src/apk.c')
-rw-r--r--src/apk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/apk.c b/src/apk.c
index 25c5260..1dab55d 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -580,6 +580,8 @@ int main(int argc, char **argv)
err_and_usage:
if (r == -EINVAL)
r = usage(applet);
+ if (r == -ESHUTDOWN)
+ r = 0;
err:
if (ctx)
free(ctx);