Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: cd35b3e11a127d283e32d9a4e43ecb13ce954260
Ticket: 3592042fffffffffffffffffffffffffffffffff
pkg_mkIndex fails on package present
User & Date: dgp on 2012-12-04 00:42:16
Changes

  1. icomment:
    What would the stubbed [package present] do?
    What should it return?
    
    This seems easy to work around.  I'd suspect
    anything calling [package present] after an
    earlier [package require] might benefit from some
    rewriting.  
    
    Looking ahead, there's not a lot of support for continuing
    to try to offer a [pkg_mkIndex] command (think Tcl 9),
    because it's an impossible problem to solve in the general
    case, and in the simple cases where it's possible, it's still
    a greater burden, and delivers less powerful and flexible
    results than you can get from just creating the pkgIndex.tcl
    file yourself (perhaps with minimal substitution assistance
    from configure to help with maintenance).
    
    That said, I'll fix this one if you can clarify what answer your
    script expects a stubbed [package present] to return, and can
    give me some assurance there aren't other scripts expecting
    a different answer.
    
    
  2. login: "dgp"
  3. mimetype: "text/plain"
  4. username: "dgp"