From 9ff9e51de2c43888af62885d658d4b36dc084b4d Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Wed, 30 Dec 2009 10:02:53 +0000 Subject: store url where we retrieved the package. --- usr.sbin/pkg_add/OpenBSD/Handle.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr.sbin/pkg_add/OpenBSD/Handle.pm b/usr.sbin/pkg_add/OpenBSD/Handle.pm index 3dc9128dfcc..160be718381 100644 --- a/usr.sbin/pkg_add/OpenBSD/Handle.pm +++ b/usr.sbin/pkg_add/OpenBSD/Handle.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Handle.pm,v 1.14 2009/12/29 13:58:18 espie Exp $ +# $OpenBSD: Handle.pm,v 1.15 2009/12/30 10:02:52 espie Exp $ # # Copyright (c) 2007-2009 Marc Espie # @@ -190,6 +190,7 @@ sub get_plist $handle->set_error(BAD_PACKAGE); return; } + OpenBSD::PackingElement::Url->add($plist, $location->url); if ($plist->localbase ne $state->{localbase}) { $state->say("Localbase mismatch: package has: ", $plist->localbase, " , user wants: ", $state->{localbase}); $location->close_with_client_error; -- cgit v1.2.3