Subject: pkg/34086: "make update" cleans the directory on errors
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 07/26/2006 06:10:01
>Number:         34086
>Category:       pkg
>Synopsis:       "make update" cleans the directory on errors
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 26 06:10:00 +0000 2006
>Originator:     Roland Illig
>Release:        NetBSD 3.0_STABLE
System: NetBSD 3.0_STABLE NetBSD 3.0_STABLE (GENERIC) #0: Sat Jun 17 13:16:17 CEST 2006 i386
Architecture: i386
Machine: i386

Until the last few weeks, when "make update" failed for whatever reason,
the working directories of the packages were not cleaned up so that the
user could inspect what was going wrong.

Currently, the working directories are cleaned even if the build fails or
some files could not be installed.


	make update PKG_FAIL_REASON="make update fails"


Only clean up the working directory if building and installing the
package has succeeded.