summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkx <kx@radix.pro>2019-09-06 12:23:15 +0300
committerkx <kx@radix.pro>2019-09-06 12:23:15 +0300
commitbe99cccb8a4696f4232887fbf4486b8afa1c9d47 (patch)
tree5b55919d4ee4d48feabd585f31151ef3ca4fea46
parentde758dd38ee7102e1347fe17cbf2f357e253da10 (diff)
downloadpkgtools-be99cccb8a4696f4232887fbf4486b8afa1c9d47.tar.xz
fixed pre_remove, post_remove routines0.1.2
-rw-r--r--src/remove-package.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/remove-package.c b/src/remove-package.c
index 0f1e6e5..0d78751 100644
--- a/src/remove-package.c
+++ b/src/remove-package.c
@@ -1060,7 +1060,7 @@ static void pre_remove_routine( void )
len = snprintf( &cmd[0], PATH_MAX,
"cd %s && %s/.INSTALL pre_remove %s > /dev/null 2>&1",
- root, tmpdir, pkgver );
+ root, rtmpdir, pkgver );
if( len == 0 || len == PATH_MAX - 1 )
{
FATAL_ERROR( "Cannot run pre-remove script for '%s-%s' package", pkgname, pkgver );
@@ -1222,7 +1222,7 @@ static void post_remove_routine( void )
len = snprintf( &cmd[0], PATH_MAX,
"cd %s && %s/.INSTALL post_remove %s > /dev/null 2>&1",
- root, tmpdir, pkgver );
+ root, rtmpdir, pkgver );
if( len == 0 || len == PATH_MAX - 1 )
{
FATAL_ERROR( "Cannot run post-remove script for '%s-%s' package", pkgname, pkgver );
@@ -2018,7 +2018,7 @@ static int check_input_package( void )
bzero( (void *)cmd, PATH_MAX );
len = snprintf( &cmd[0], PATH_MAX,
- "%s/pkginfo -d %s -o pkginfo,description,restore-links,filelist %s > /dev/null 2>&1",
+ "%s/pkginfo -d %s -o pkginfo,description,install-script,restore-links,filelist %s > /dev/null 2>&1",
selfdir, tmp, fname );
if( len == 0 || len == PATH_MAX - 1 )
{