summaryrefslogtreecommitdiffstats
path: root/library/opt
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2001-08-09 01:00:56 (GMT)
committerdgp <dgp@noemail.net>2001-08-09 01:00:56 (GMT)
commit4f5c441aff06e9499f190a630f918f2f345c0c86 (patch)
tree4de665abc3dfdb39a9a0c0f58bc83b5fa475cc88 /library/opt
parent17f0c7e5e769d24f08d643c68bf82da3a7cabd04 (diff)
downloadtcl-4f5c441aff06e9499f190a630f918f2f345c0c86.zip
tcl-4f5c441aff06e9499f190a630f918f2f345c0c86.tar.gz
tcl-4f5c441aff06e9499f190a630f918f2f345c0c86.tar.bz2
Add package dependency checks. Upgrade packages bundled with
Tcl 8.3.x: http 2.3.2, msgcat 1.1.1, opt 0.4.3, tcltest 1.0.1. FossilOrigin-Name: b6aa9b01039c3ba9805ea24a6b93594f0cf1fb10
Diffstat (limited to 'library/opt')
-rw-r--r--library/opt/optparse.tcl5
-rw-r--r--library/opt/pkgIndex.tcl3
2 files changed, 5 insertions, 3 deletions
diff --git a/library/opt/optparse.tcl b/library/opt/optparse.tcl
index d552297..3a1a7fb 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.2.12.2 2001/04/03 22:54:38 hobbs Exp $
+# RCS: @(#) $Id: optparse.tcl,v 1.2.12.3 2001/08/09 01:00:56 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]]