|
2001-04-06
| ||
| 02:06 | • Ticket [218841ffff] pkg_mkIndex generates an incorrect pkgIndex.tcl file sta... artifact: 897b61753f user: dgp | |
|
2000-10-26
| ||
| 08:30 | • Closed ticket [218841ffff]. artifact: 1328353ec9 user: welch | |
| 01:06 | • New ticket [218841ffff]. artifact: 7f2326d46f user: nobody | |
pkg_mkIndex generates an incorrect pkgIndex.tcl file
Closed / Fixed218841ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:06:26
OriginalBugID: 2360 Bug
Version: 8.1.1
SubmitDate: '1999-07-16'
LastModified: '2000-01-28'
Severity: SER
Status: Released
Submitter: techsupp
ChangedBy: ericm
OS: All
Machine: X86
FixedDate: '2000-01-28'
FixedInVersion: 8.3
ClosedDate: '2000-10-25'
Name:
Gerald Banon
ReproducibleScript:
In the current directory I have a file named prog.tcl containing two
procedures whose names are defined within braces like below:
package provide prog 1.1
proc {a b} {} {
}
proc {c d} {} {
}
When running the command:
pkg_mkIndex . prog.tcl
the resulting pkgIndex.tcl file contains the line:
package ifneeded prog 1.1 [list tclPkgSetup $dir prog 1.1
{{definition.tcl source {{{a b}} {{c d}}}}}]
In this line there are extra braces arround {a b} and {c d}.
Latter on, with these extra braces, the two procedures cannot be loaded
...
ObservedBehavior:
see above
DesiredBehavior:
in Tcl 8.0p2 such procedure names cames without extra braces in the
pkgIndex.tcl file and latter on the procedures were properly loaded.
Verified. This is due to the auto_qualify proc always wanting
to return everything as [list]'ed.
-- 11/30/1999 hobbs
As Jeff noted, this was due to auto_qualify always returning a list. I modified pkg_mkIndex to just grab the first element of the list, in essence un-listifying the result. This should be done anyway, as auto_qualify can return a multi-element list, so to protect against that we want only the first element too. This fix is in 8.3.
- eric
-- 01/28/2000 ericm
welch Closed ticket [218841ffff].
[History diff]2000-10-26 08:30:13
dgp Ticket [218841ffff]: 3 changes
[History diff]2001-04-06 02:06:50
Log in (anonymous is fine) to add a comment.