Manifest of check-in
[fb9873f457]
-
Backport to 8.4 (Don Porter's work).
When no requirements are supplied to a [package require $pkg] and
[package unknown] is invoked to find a satisfying package, pass the
requirement argument "0-" (which means all versions are
acceptable). This permits a registered [package unknown] command to
call [package vsatisfies $testVersion {*}$args] without any special
handling of the empty $args case. This fixes/avoids a bug in
[::tcl::tm::UnknownHandler] that was causing old TM versions to be
provided in preference to newer TM versions. Thanks to Julian Noble
for discovering the issue.
by
andreas_kupries on
2006-12-05 17:44:43.
B a88d79cbf88f04a3f3918625a36a4df1d75704a2
C \nBackport\sto\s8.4\s(Don\sPorter's\swork).\n\nWhen\sno\srequirements\sare\ssupplied\sto\sa\s[package\srequire\s$pkg]\sand\n[package\sunknown]\sis\sinvoked\sto\sfind\sa\ssatisfying\spackage,\spass\sthe\nrequirement\sargument\s"0-"\s(which\smeans\sall\sversions\sare\nacceptable).\sThis\spermits\sa\sregistered\s[package\sunknown]\scommand\sto\ncall\s[package\svsatisfies\s$testVersion\s{*}$args]\swithout\sany\sspecial\nhandling\sof\sthe\sempty\s$args\scase.\sThis\sfixes/avoids\sa\sbug\sin\n[::tcl::tm::UnknownHandler]\sthat\swas\scausing\sold\sTM\sversions\sto\sbe\nprovided\sin\spreference\sto\snewer\sTM\sversions.\s\sThanks\sto\sJulian\sNoble\nfor\sdiscovering\sthe\sissue.\n
D 2006-12-05T17:44:43
F ChangeLog b31eef0fd8084d700fc3beb8247bc058a070e240
F doc/file.n af5c5d57b64407f26afbd5d119d6aef664e9a174
F generic/tclPkg.c 782ac9cff5dba50a4f54fb1ec34480e6c414fe1e
F tests/pkg.test 5d8720279ea1ba4a350404decff54762c528a93c
P c1e3f441f9a39fb79e185e778f9d38a195497aeb
U andreas_kupries
Z 91ca0fc55eacfd545cedd6d86fef8cc5