Subject: Re: pkg/20856: /var/db/pkg/*/+INSTALL files are not installed from binary packages
To: None <naoki@fukaumi.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 03/23/2003 17:24:20
[ On Sunday, March 23, 2003 at 21:11:09 (+0900), naoki@fukaumi.org wrote: ]
> Subject: pkg/20856: /var/db/pkg/*/+INSTALL files are not installed from binary packages
>
> >Fix:

This should do it (line numbers in the patch header are somewhat off
because my version has quite a few other changes and tabs have been
converted to spaces courtesy xterm's brain-damaged "cut"):

Index: add/perform.c
===================================================================
RCS file: /cvs/master/m-NetBSD/main/src/usr.sbin/pkg_install/add/perform.c,v
retrieving revision 1.77
diff -c -r1.77 perform.c
*** add/perform.c       10 Jan 2003 11:55:44 -0000      1.77
--- add/perform.c       18 Jan 2003 01:14:09 -0000
***************
*** 563,568 ****
--- 566,573 ----
                }
                /* 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))


-- 
								Greg A. Woods

+1 416 218-0098;            <g.a.woods@ieee.org>;           <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; VE3TCP; Secrets of the Weird <woods@weird.com>