| Summary: | pkg_add(1) manual documents --no-scripts, but source uses --no-script | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | TerryP <BigBoss1964> |
| Component: | Books & Articles | Assignee: | chinsan <chinsan> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->analyzed this is a documentation issue man page should document the "--no-script" option Responsible Changed From-To: freebsd-bugs->freebsd-doc over to docs team Responsible Changed From-To: freebsd-doc->chinsan I'll take this. Author: chinsan (doc,ports committer) Date: Sun Jan 4 07:29:04 2009 New Revision: 186732 URL: http://svn.freebsd.org/changeset/base/186732 Log: - s/no-scripts/no-script/ PR: docs/127732 Submitted by: TerryP <BigBoss1964@gmail.com> MFC after: 3 days Modified: head/usr.sbin/pkg_install/add/pkg_add.1 Modified: head/usr.sbin/pkg_install/add/pkg_add.1 ============================================================================== --- head/usr.sbin/pkg_install/add/pkg_add.1 Sun Jan 4 00:20:18 2009 (r186731) +++ head/usr.sbin/pkg_install/add/pkg_add.1 Sun Jan 4 07:29:04 2009 (r186732) @@ -15,7 +15,7 @@ .\" .\" $FreeBSD$ .\" -.Dd May 30, 2008 +.Dd Jan 4, 2009 .Dt PKG_ADD 1 .Os .Sh NAME @@ -90,7 +90,7 @@ if it is defined or in current directory .It Fl i , -no-deps Install the package without fetching and installing dependencies. -.It Fl I , -no-scripts +.It Fl I , -no-script If any installation scripts (pre-install or post-install) exist for a given package, do not execute them. .It Fl n , -dry-run _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org" State Changed From-To: analyzed->closed Committed, thanks. |
The manual page for pkg_add(1) documents that the long option to skip executing scripts is --no-scripts. When attempting to execute pkg_add --no-scripts, the following output is given: pkg_add: unrecognized option `--noscripts' usage: pkg_add [-viInfFrRMSK] [-t template] [-p prefix] [-P prefix] [-C chrootdir] pkg-name [pkg-name ...] A quick look at src/usr.sbin/pkg_install/add/main.c, shows that the the program accepts --no-script instead. Fix: Change one line in either the manual page (src/usr.sbin/pkg_install/add/pkg_add.1) or the programs source code (src/usr.sbin/pkg_install/add/main.c). How-To-Repeat: execute$ pkg_add --no-scripts your_pkg_file.tbz