diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2009-12-30 10:02:53 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2009-12-30 10:02:53 +0000 |
commit | 9ff9e51de2c43888af62885d658d4b36dc084b4d (patch) | |
tree | 82d2714f3cb84c5f50dbddb9be7376d874a19dbe | |
parent | 2e12b4aa06ff10749a35dfb8d2f38a578b67bf0e (diff) |
store url where we retrieved the package.
-rw-r--r-- | usr.sbin/pkg_add/OpenBSD/Handle.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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 <espie@openbsd.org> # @@ -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; |