Pkg_add fix: if an install script is present move it into LogDir
(PKG_DBDIR/PKGNAME). Address PR pkg/20856 and part of PRs pkg/20852, pkg/20853 and pkg/20854 by FUKAUMI Naoki <naoki at fukaumi dot org>. Note: with this change pkg_tarup can now produce reusable binary packages from installed packages when they depend on an install script.
This commit is contained in:
parent
3273d1bc8b
commit
f34edd6ece
|
@ -1,11 +1,11 @@
|
|||
/* $NetBSD: perform.c,v 1.78 2003/03/24 13:47:13 hubertf Exp $ */
|
||||
/* $NetBSD: perform.c,v 1.79 2003/03/24 22:13:54 seb Exp $ */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
#if 0
|
||||
static const char *rcsid = "from FreeBSD Id: perform.c,v 1.44 1997/10/13 15:03:46 jkh Exp";
|
||||
#else
|
||||
__RCSID("$NetBSD: perform.c,v 1.78 2003/03/24 13:47:13 hubertf Exp $");
|
||||
__RCSID("$NetBSD: perform.c,v 1.79 2003/03/24 22:13:54 seb Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -649,6 +649,8 @@ ignore_upgrade_depends_check:
|
|||
}
|
||||
/* Make sure pkg_info can read the entry */
|
||||
vsystem("%s a+rx %s", CHMOD_CMD, LogDir);
|
||||
if (fexists(INSTALL_FNAME))
|
||||
move_file(".", INSTALL_FNAME, LogDir);
|
||||
if (fexists(DEINSTALL_FNAME))
|
||||
move_file(".", DEINSTALL_FNAME, LogDir);
|
||||
if (fexists(REQUIRE_FNAME))
|
||||
|
|
Loading…
Reference in New Issue