summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-05-27 11:21:56 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-05-27 11:21:56 +0000
commitd9e5c09cf6c6cd9495329daf81408f81a6252753 (patch)
tree15423be8eccf890d3fc1bd0a69496dd485b70203 /usr.sbin/pkg_add/OpenBSD
parentf3c8ddc8611c61ecf470d1ed637ad13ca096f860 (diff)
Simplify the mess that deals with alaready installed packages.
We can now have one central point that deals with it.
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Vstat.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/Vstat.pm b/usr.sbin/pkg_add/OpenBSD/Vstat.pm
index 07b1f280377..a496adde8a6 100644
--- a/usr.sbin/pkg_add/OpenBSD/Vstat.pm
+++ b/usr.sbin/pkg_add/OpenBSD/Vstat.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Vstat.pm,v 1.23 2007/05/27 10:38:12 espie Exp $
+# $OpenBSD: Vstat.pm,v 1.24 2007/05/27 11:21:55 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -237,7 +237,8 @@ package OpenBSD::Handle;
use constant {
NOT_FOUND => 0,
BAD_PACKAGE => 1,
- CANT_INSTALL => 2
+ CANT_INSTALL => 2,
+ ALREADY_INSTALLED => 3
};
sub new