Overview
| Artifact ID: | 3de6247bee3fd8d19b7cf29855b014572ea98b7b |
|---|---|
| Ticket: | 3592042fffffffffffffffffffffffffffffffff
pkg_mkIndex fails on package present |
| User & Date: | dgp on 2012-12-04 22:52:53 |
Changes
- icomment:
A script like this is more trouble: package require bar if {[package vsatisfies [package present bar] 2]} { # import commands from bar version 2 } else { package require util 1 # install syntax conversion wrappers between # versions 1 and 2 of bar, using facilities of package util } If package "bar" is a [load]-able package, the the [pkg_mkIndex -load bar] option can control the presence of bar during indexing. In that scenario, stubbing [package present] would make a currently functioning indexing operation stop working. A simple rewrite [package present] -> [package provide] would solve the problem, but that sort of potential incompat ought to be introduced in 8.6 (if at all), not a patchlevel, IMHO. - login: "dgp"
- mimetype: "text/plain"
- username: "dgp"