Tk Library Source Code

View Ticket
Login
Ticket UUID: 410100
Title: Package mgmt woes during development
Type: Bug Version: None
Submitter: andreas_kupries Created on: 2001-03-20 19:01:07
Subsystem: None Assigned To: andreas_kupries
Priority: 6 Severity:
Status: Closed Last Modified: 2001-03-27 00:00:28
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2001-03-26 17:00:28
Description:
Assume the current codebase, an installed fileutil 1.0
and a new
fileutil 1.1 under development. The initialization of
the tests scans
the package directories and finds fileutil 1.0. The
module then adds
itself to the auto_path and then requires fileutil
(without
version). Now fileutil 1.0 is found by the pkg
management, it is
acceptable according to the rules of require and thus
used. The new
version is not considered at all, as changing the
auto_path does *not*
enforce a rescan of package directories.

It is possible to solve the problem by having the
modules require
themselves and request a specific version (1.1 in this
case). But this
would mean that in each module we have (at least) one
more file
containing the version number (all test files!) and we
have to
maintain this for every module. I rather propose the
following changes
to all.tcl:

Adds the module path to the auto_path (the tested
modules did it
themselves before) and also move the setting of the
auto_path in the
slave before the first 'package require' (of tcltest).

Now all paths are in order when the first scan happens,
immediately
picking up the development version (provided that is
has a higher
version number :).
User Comments: andreas_kupries added on 2001-03-27 00:00:28:
Logged In: YES 
user_id=75003

Patch #410105 is committed, fixing this patch.

andreas_kupries added on 2001-03-21 02:11:15:
Logged In: YES 
user_id=75003

This bug is fixed by patch #410105.
Please comment.