diff options
author | 2011-11-21 14:38:43 +0000 | |
---|---|---|
committer | 2011-11-21 14:38:43 +0000 | |
commit | 643055cc929ba41115441d8f93831621a9e4745f (patch) | |
tree | e718b000023ebbf6c7f21ae551d5d12fb4436a2e | |
parent | avoid excessive parenthesis (diff) | |
download | wireguard-openbsd-643055cc929ba41115441d8f93831621a9e4745f.tar.xz wireguard-openbsd-643055cc929ba41115441d8f93831621a9e4745f.zip |
exit code of 1 for -e errors, 2 for -r errors... combine as 3.
-> allows to run one pkg_info and disambiguate both kinds of errors.
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/PkgInfo.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm b/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm index 2fcd2b295e5..2e4d005a8d7 100644 --- a/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm +++ b/usr.sbin/pkg_add/OpenBSD/PkgInfo.pm @@ -1,6 +1,6 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: PkgInfo.pm,v 1.23 2011/11/20 10:52:14 espie Exp $ +# $OpenBSD: PkgInfo.pm,v 1.24 2011/11/21 14:38:43 espie Exp $ # # Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org> # @@ -509,7 +509,7 @@ sub parse_and_run if (@l != 0) { return $exit_code; } else { - return 1; + return $exit_code + 2; } } |