From 64d90e66af72be46716f2b4bc6d651b1b5515283 Mon Sep 17 00:00:00 2001 From: Marc Espie Date: Tue, 1 Dec 2009 08:13:24 +0000 Subject: for every case we can't install stuff, we have to let the tracker now, and close the set. --- usr.sbin/pkg_add/pkg_add | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr.sbin/pkg_add/pkg_add b/usr.sbin/pkg_add/pkg_add index aaa7181c1f5..21c82b76f86 100644 --- a/usr.sbin/pkg_add/pkg_add +++ b/usr.sbin/pkg_add/pkg_add @@ -1,7 +1,7 @@ #! /usr/bin/perl # ex:ts=8 sw=4: -# $OpenBSD: pkg_add,v 1.406 2009/11/30 16:15:13 espie Exp $ +# $OpenBSD: pkg_add,v 1.407 2009/12/01 08:13:23 espie Exp $ # # Copyright (c) 2003-2009 Marc Espie # @@ -583,6 +583,8 @@ sub install_set $handle->location->close_now; } $bad++; + $set->cleanup(OpenBSD::Handle::CANT_INSTALL); + $state->tracker->mark_cant_update($set); return (); } -- cgit v1.2.3