summaryrefslogtreecommitdiff
path: root/usr.sbin/pkg_add/OpenBSD
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2016-09-14 13:42:20 +0000
committerMarc Espie <espie@cvs.openbsd.org>2016-09-14 13:42:20 +0000
commitd60ff3f8bb7257d22b42d930e0da18ba53ae721b (patch)
treed09615b8afd6a6843937e83b909f1a469a57bd9f /usr.sbin/pkg_add/OpenBSD
parent20242dc59c990d4029b6d5f3950e8b1c70fbc2a7 (diff)
add an is_local-file method for later signature
Diffstat (limited to 'usr.sbin/pkg_add/OpenBSD')
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageRepository.pm7
-rw-r--r--usr.sbin/pkg_add/OpenBSD/PackageRepository/Installed.pm7
2 files changed, 12 insertions, 2 deletions
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm
index 4a0ab216d09..fa60a447054 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackageRepository.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: PackageRepository.pm,v 1.132 2016/09/14 12:48:58 espie Exp $
+# $OpenBSD: PackageRepository.pm,v 1.133 2016/09/14 13:42:19 espie Exp $
#
# Copyright (c) 2003-2010 Marc Espie <espie@openbsd.org>
#
@@ -409,6 +409,11 @@ package OpenBSD::PackageRepository::Local;
our @ISA=qw(OpenBSD::PackageRepository);
use OpenBSD::Error;
+sub is_local_file
+{
+ return 1;
+}
+
sub urlscheme
{
return 'file';
diff --git a/usr.sbin/pkg_add/OpenBSD/PackageRepository/Installed.pm b/usr.sbin/pkg_add/OpenBSD/PackageRepository/Installed.pm
index c4e3fa20605..f53d252d30c 100644
--- a/usr.sbin/pkg_add/OpenBSD/PackageRepository/Installed.pm
+++ b/usr.sbin/pkg_add/OpenBSD/PackageRepository/Installed.pm
@@ -1,5 +1,5 @@
# ex:ts=8 sw=4:
-# $OpenBSD: Installed.pm,v 1.35 2016/09/05 10:36:21 espie Exp $
+# $OpenBSD: Installed.pm,v 1.36 2016/09/14 13:42:19 espie Exp $
#
# Copyright (c) 2007-2014 Marc Espie <espie@openbsd.org>
#
@@ -28,6 +28,11 @@ package OpenBSD::PackageRepositoryBase;
my ($version, $current);
+sub is_local_file
+{
+ return 0;
+}
+
sub expand_locations
{
my ($class, $string, $state) = @_;