Bug 127732

Summary: pkg_add(1) manual documents --no-scripts, but source uses --no-script
Product: Documentation Reporter: TerryP <BigBoss1964>
Component: Books & ArticlesAssignee: chinsan <chinsan>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description TerryP 2008-09-30 01:40:00 UTC
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
Comment 1 Volker Werth freebsd_committer freebsd_triage 2009-01-03 22:53:41 UTC
State Changed
From-To: open->analyzed

this is a documentation issue 
man page should document the "--no-script" option 


Comment 2 Volker Werth freebsd_committer freebsd_triage 2009-01-03 22:53:41 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-doc

over to docs team
Comment 3 chinsan freebsd_committer freebsd_triage 2009-01-04 05:38:32 UTC
Responsible Changed
From-To: freebsd-doc->chinsan

I'll take this.
Comment 4 dfilter service freebsd_committer freebsd_triage 2009-01-04 07:29:16 UTC
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"
Comment 5 chinsan freebsd_committer freebsd_triage 2009-01-11 06:30:27 UTC
State Changed
From-To: analyzed->closed

Committed, thanks.