diff options
author | joerg <joerg@pkgsrc.org> | 2009-06-17 12:54:57 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-06-17 12:54:57 +0000 |
commit | 960e81f03b6e6527c6083a75d5546c8f408fd8bf (patch) | |
tree | 078f762d0ff3c12a8dd0656f211fe1c83cc0580b /mk/flavor/pkg | |
parent | d926242b854ebd0a02aa51908062d6d24fa92331 (diff) | |
download | pkgsrc-960e81f03b6e6527c6083a75d5546c8f408fd8bf.tar.gz |
Make sure that _UPDATE_RUNNING=YES is passed down to su-deinstall for
PKG_PRESERVE packages (e.g. pkg_install). Otherwise an old version of
pkg_install is not removed from pkgdb.
Diffstat (limited to 'mk/flavor/pkg')
-rw-r--r-- | mk/flavor/pkg/deinstall.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/flavor/pkg/deinstall.mk b/mk/flavor/pkg/deinstall.mk index 3130f900d45..f7476a389ff 100644 --- a/mk/flavor/pkg/deinstall.mk +++ b/mk/flavor/pkg/deinstall.mk @@ -1,4 +1,4 @@ -# $NetBSD: deinstall.mk,v 1.9 2009/05/16 01:34:22 joerg Exp $ +# $NetBSD: deinstall.mk,v 1.10 2009/06/17 12:54:57 joerg Exp $ # Set the appropriate flags to pass to pkg_delete(1) based on the value # of DEINSTALLDEPENDS (see pkgsrc/mk/install/deinstall.mk). @@ -20,6 +20,8 @@ _PKG_ARGS_DEINSTALL+= -v .if defined(PKG_PRESERVE) . if defined(_UPDATE_RUNNING) && !empty(_UPDATE_RUNNING:M[yY][eE][sS]) _PKG_ARGS_DEINSTALL+= -N -f -f # update w/o removing any files + +MAKEFLAGS.su-deinstall+= _UPDATE_RUNNING=YES . endif .endif |