diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2018-10-22 14:14:09 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2018-10-22 14:14:09 +0000 |
commit | b86dabbcd34c19a2cf7896fd814d238dc69139c0 (patch) | |
tree | b383a235ab82b8b2b50035c8c580534e0c4ac0bb /usr.sbin | |
parent | 6412eb40795c1cf741d3c753db69abc96177dccf (diff) |
document that some error should happen
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Update.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Update.pm b/usr.sbin/pkg_add/OpenBSD/Update.pm index 79e9ef85c4a..af64b42e0ac 100644 --- a/usr.sbin/pkg_add/OpenBSD/Update.pm +++ b/usr.sbin/pkg_add/OpenBSD/Update.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Update.pm,v 1.162 2015/01/04 14:20:04 espie Exp $ +# $OpenBSD: Update.pm,v 1.163 2018/10/22 14:14:08 espie Exp $ # # Copyright (c) 2004-2014 Marc Espie <espie@openbsd.org> # @@ -144,6 +144,11 @@ sub process_handle return 1; } } + # XXX all that code conveniently forgets about old versions, while + # marking them as "normal". + # there should be some error path when we consistenly fail to find + # an equal-or-newer version in our repository, so that pkg_add has + # consistent exit codes. if (!$state->defines('downgrade')) { push(@search, OpenBSD::Search::FilterLocation->more_recent_than($sname, \$oldfound)); } |