Bug 29262

Summary: pkg_info -f fails with "unknown command type 16 (preserve)"
Product: Base System Reporter: David Jones <djones>
Component: binAssignee: Kris Kennaway <kris>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.3-RELEASE   
Hardware: Any   
OS: Any   

Description David Jones 2001-07-27 11:20:01 UTC
Downloaded a patch:
# fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/CERT/packages/SA-01:48/security-patch-tcpdump-nossl-01.48.tgz

Then:
# pkg_info -f security-patch-telnetd-crypto-01.49.tgz

Gives some output ending with:
        CWD to /
        SRCDIR to /mnt/jail-4.3
pkg_info: show_plist: unknown command type 16 (preserve)

Which doesn't seem right to me.

Fix: 

Sorry.
How-To-Repeat: as above
Comment 1 Kris Kennaway 2001-07-28 08:56:37 UTC
On Fri, Jul 27, 2001 at 03:15:04AM -0700, David Jones wrote:

> Then:
> # pkg_info -f security-patch-telnetd-crypto-01.49.tgz
> 
> Gives some output ending with:
>         CWD to /
>         SRCDIR to /mnt/jail-4.3
> pkg_info: show_plist: unknown command type 16 (preserve)
> 
> Which doesn't seem right to me.


Here's a patch which I'll commit over the weekend.

Kris

Index: show.c
===================================================================
RCS file: /home/ncvs/src/usr.sbin/pkg_install/info/show.c,v
retrieving revision 1.21
diff -u -r1.21 show.c
--- show.c	2001/03/23 18:45:24	1.21
+++ show.c	2001/07/28 07:55:28
@@ -163,6 +163,10 @@
 	    printf(Quiet ? "@dirrm %s\n" : "\tDeinstall directory remove: %s\n", p->name);
 	    break;
 
+	case PLIST_OPTION:
+	    printf(Quiet ? "@option %s\n" : "\tOption \"%s\" controlling package installation behaviour; see pkg_create(1)\n", p->name);
+	    break;
+
 	default:
 	    cleanup(0);
 	    errx(2, __FUNCTION__ ": unknown command type %d (%s)", p->type, p->name);
Comment 2 Kris Kennaway freebsd_committer freebsd_triage 2001-07-28 08:56:43 UTC
Responsible Changed
From-To: freebsd-bugs->kris

I'll commit my patch
Comment 3 Kris Kennaway freebsd_committer freebsd_triage 2001-08-06 21:09:39 UTC
State Changed
From-To: open->closed

Committed to -current, thanks!