Tk Library Source Code

View Ticket
Login
Ticket UUID: 727694
Title: sak validate imposes [package provide] format
Type: RFE Version: None
Submitter: dgp Created on: 2003-04-25 19:00:53
Subsystem: general request Assigned To: andreas_kupries
Priority: 8 Severity:
Status: Closed Last Modified: 2003-05-01 07:18:05
Resolution: Closed By: andreas_kupries
    Closed on: 2003-05-01 00:18:05
Description:
Several packages in tcllib had a structure like:

namespace eval foo {
    variable version 1.0.2
...
    package provide foo $version
}

but they were changed to have a literal value
in the [package provide] command, like:

namespace eval foo {
...
}

set ::foo::version 1.0.2
package provide foo 1.0.2

This was done to meet the limitations of
the Swiss Army Knife tool in validating
the modules against the release plan,
and is explained in devdoc/notes.txt.

I request that sak.tcl remove this limitation,
so the original structure of these packages
can be restored.

A simple [source] into a slave interp should
suffice for determining the provided version,
rather than the current attempt to parse Tcl
code with regexps.
User Comments: andreas_kupries added on 2003-05-01 07:18:05:
Logged In: YES 
user_id=75003

Changed sak, reverted changes to package provide.
Comitted to CVS head.