diff options
author | dgp <dgp@users.sourceforge.net> | 2001-08-09 01:06:42 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2001-08-09 01:06:42 (GMT) |
commit | d7c342a4ee3392e4a7f62257ef6906bc1c1a3d2f (patch) | |
tree | 4ea0ef33da47dbebe516c83ac83f355a695d6494 /library/opt | |
parent | 280f05e70aff22b0058a6bbd878e84a12d01dcad (diff) | |
download | tcl-d7c342a4ee3392e4a7f62257ef6906bc1c1a3d2f.zip tcl-d7c342a4ee3392e4a7f62257ef6906bc1c1a3d2f.tar.gz tcl-d7c342a4ee3392e4a7f62257ef6906bc1c1a3d2f.tar.bz2 |
Added checks for package dependencies.
Bumped patchlevels of changed packages: http 2.3.2, msgcat 1.2.2,
opt 0.4.3, tcltest 2.0.1. [Patch 448931]
Diffstat (limited to 'library/opt')
-rw-r--r-- | library/opt/optparse.tcl | 5 | ||||
-rw-r--r-- | library/opt/pkgIndex.tcl | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/library/opt/optparse.tcl b/library/opt/optparse.tcl index f3c82a1..e710008 100644 --- a/library/opt/optparse.tcl +++ b/library/opt/optparse.tcl @@ -8,9 +8,10 @@ # on it. If your code does rely on this package you # may directly incorporate this code into your application. # -# RCS: @(#) $Id: optparse.tcl,v 1.5 2000/12/11 04:17:39 dgp Exp $ +# RCS: @(#) $Id: optparse.tcl,v 1.6 2001/08/09 01:06:42 dgp Exp $ -package provide opt 0.4.2 +package require Tcl 8 +package provide opt 0.4.3 namespace eval ::tcl { diff --git a/library/opt/pkgIndex.tcl b/library/opt/pkgIndex.tcl index 2de9531..02c289c 100644 --- a/library/opt/pkgIndex.tcl +++ b/library/opt/pkgIndex.tcl @@ -8,4 +8,5 @@ # script is sourced, the variable $dir must contain the # full path name of this file's directory. -package ifneeded opt 0.4.2 [list source [file join $dir optparse.tcl]] +if {![package vsatisfies [package provide Tcl] 8]} {return} +package ifneeded opt 0.4.3 [list source [file join $dir optparse.tcl]] |