Bug 1236 - pkgsend open should not allow both -e and -n
: pkgsend open should not allow both -e and -n
Status: RESOLVED FIXINSOURCE
Product: pkg
pkgsend
: in95 (093ca22da67c)
: Other Solaris
: P4 minor (vote)
: ---
Assigned To: Shawn Walker
: pkg/pkgsend watcher
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-04-15 15:40 UTC by erik.lafever
Modified: 2009-02-13 12:08 UTC (History)
0 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description erik.lafever 2008-04-15 15:40:31 UTC
pkgsend open -en testpkg@1  and pkgsend open -ne testpkg@1 should return usage. 

Currently the option that is given last is the one that is used.

-bash-3.2# pkgsend open thepkg1@1
export PKG_TRANS_ID=1208299045_pkg%3A%2Fthepkg1%401%2C5.11%3A20080415T153725Z


-bash-3.2# pkgsend open -n thepkg2@1
1208299057_pkg%3A%2Fthepkg2%401%2C5.11%3A20080415T153737Z

-bash-3.2# pkgsend open -e thepkg3@1
export PKG_TRANS_ID=1208299065_pkg%3A%2Fthepkg3%401%2C5.11%3A20080415T153745Z


-bash-3.2# pkgsend open -ne thepkg4@1
export PKG_TRANS_ID=1208299080_pkg%3A%2Fthepkg4%401%2C5.11%3A20080415T153800Z


-bash-3.2# pkgsend open -en thepkg5@1
1208299094_pkg%3A%2Fthepkg5%401%2C5.11%3A20080415T153814Z
Comment 1 Dan Price 2008-08-28 01:35:48 UTC
Reproducable on current bits.  Accepting.
Comment 2 Dan Price 2008-08-28 17:25:55 UTC
Bulk move of pkgsend bugs to new category.
Comment 3 Shawn Walker 2009-02-03 23:05:27 UTC
Just need to check to see if both options have been specified and then error
out if they have.
Comment 4 Shawn Walker 2009-02-06 15:01:32 UTC
Now displays:

pkgsend: only -e or -n may be specified
Usage: ...
Comment 5 Shawn Walker 2009-02-13 12:08:04 UTC
Fixed in changeset 873 / b95d76c53b5eeece7335982e3ccf7047770decc4.