Date: Mon, 13 Oct 2008 06:31:08 -0700 (PDT) From: Jeremy Chadwick <koitsu@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/128058: pkg_create -n flag does not work (lack of code) Message-ID: <20081013133109.00911C9419@icarus.home.lan> Resent-Message-ID: <200810131340.m9DDe65g047531@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 128058 >Category: bin >Synopsis: pkg_create -n flag does not work (lack of code) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Oct 13 13:40:06 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Jeremy Chadwick >Release: FreeBSD 7.1-PRERELEASE amd64 >Organization: >Environment: System: FreeBSD icarus.home.lan 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Thu Oct 2 03:04:20 PDT 2008 root@icarus.home.lan:/usr/obj/usr/src/sys/PDSMI_PLUS_RELENG_7_amd64 amd64 >Description: The -n flag is documented in the pkg_create(1) man page for 7.1-PRERELEASE as being "no clobber" mode, but there's no code for it. It's listed in the opts[] array, but there's no csupport for it in main(). This is specific to RELENG_7. >How-To-Repeat: Try to use pkg_create -n, you'll receive usage syntax. >Fix: The necessary code nees to be put in place. The below patch is based on what's in CURRENT. http://www.freebsd.org/cgi/cvsweb.cgi/src/usr.sbin/pkg_install/create/main.c.diff?r1=1.45;r2=1.46;f=h --- /usr/src/usr.sbin/pkg_install/create/main.c 2008-06-17 03:47:24.000000000 -0700 +++ ./main.c 2008-10-13 06:29:53.840396271 -0700 @@ -208,6 +208,10 @@ Recursive = TRUE; break; + case 'n': + Regenerate = FALSE; + break; + case 0: if (Help) usage(); >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081013133109.00911C9419>