summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2007-05-29 10:40:21 +0000
committerMarc Espie <espie@cvs.openbsd.org>2007-05-29 10:40:21 +0000
commitb507bb21d44e06545375ecc3670c25c7d627b66c (patch)
treefee90f3c9670b67ced17adcd588c47d018a01b02
parenta02b0ab1d25f9bc09553560af9423058dc820a74 (diff)
don't use 0 as an error number.
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PkgCfl.pm4
-rw-r--r--usr.sbin/pkg_add/OpenBSD/Vstat.pm6
2 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PkgCfl.pm b/usr.sbin/pkg_add/OpenBSD/PkgCfl.pm
index eebf9c6faa2..36cf357524a 100644
--- a/usr.sbin/pkg_add/OpenBSD/PkgCfl.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PkgCfl.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PkgCfl.pm,v 1.22 2007/05/14 11:22:00 espie Exp $
+# $OpenBSD: PkgCfl.pm,v 1.23 2007/05/29 10:40:20 espie Exp $
#
# Copyright (c) 2003-2005 Marc Espie <espie@openbsd.org>
#
@@ -112,7 +112,7 @@ sub find($$)
sub find_all
{
my ($plist, $state) = @_;
- my $pkgname = $plist->pkgname();
+ my $pkgname = $plist->pkgname;
my $l = OpenBSD::PkgCfl->make_conflict_list($plist);
$plist->{conflicts} = $l;
diff --git a/usr.sbin/pkg_add/OpenBSD/Vstat.pm b/usr.sbin/pkg_add/OpenBSD/Vstat.pm
index b0bb20e4ad7..6ec2a02bc25 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.28 2007/05/28 13:00:05 espie Exp $
+# $OpenBSD: Vstat.pm,v 1.29 2007/05/29 10:40:20 espie Exp $
#
# Copyright (c) 2003-2007 Marc Espie <espie@openbsd.org>
#
@@ -272,10 +272,10 @@ sub cleanup
package OpenBSD::Handle;
use constant {
- NOT_FOUND => 0,
BAD_PACKAGE => 1,
CANT_INSTALL => 2,
- ALREADY_INSTALLED => 3
+ ALREADY_INSTALLED => 3,
+ NOT_FOUND => 4
};
sub new