<i>package provide/package ifneeded mismatch errors</i> status still Open with 4 other changes
by
.
D 2007-05-03T18:02:52
J icomment Logged\sIn:\sYES\s\nuser_id=91629\nOriginator:\sNO\n\nOkay,\sI\shave\scome\sup\swith\san\salternative\sproposal\sthat\smay\scover\sboth\sviews\s(dgp\s&\smine).\n\nEnhance\sthe\s"package\sprovide"\sto\saccept\sa\sversion\sas\sa\slist\sof\stwo\selements.\s\sThe\sfirst\selement\sis\sthe\sversion\sthat\sthe\spackage\smanager\scares\sabout,\sand\sthe\ssecond\sis\sadditional\ssub-version\sinformation\s(one\scould\scall\sit\sa\spatchlevel)\sthat\sis\sstored\sby\sthe\spackage\smanager\sbut\snot\sused\sin\sdecision\smaking.\n\ne.g.\sI\swant\sto\sversion\smy\spackages\sat\sminor\slevel\sfor\sthe\spurposes\sof\smanagement,\sbut\sfor\sdiagnostics\sI\swant\sto\sbe\sable\sto\sreport\sthe\sexact\spatchlevel\sor\s"build"\sof\scode\sthat\sis\srunning.\n\nIn\sTcl\s8.4.x\sI\scould\sdo\sthis:\n\s\spackage\sifneeded\sp\s1.1\s{\spackage\sprovide\sp\s1.1.7\s}\n\nIn\sTcl\s8.5a\scurrently\sI\smust\sdo\sthis:\n\s\spackage\sifneeded\sp\s1.1\s{\spackage\sprovide\sp\s1.1\s;\sset\s::my_package_info(p)\s1.1.7\s}\n\n\s\sNote\sthat\sI\snow\sneed\sa\scustom\swork-around\sin\s8.5\sfor\ssomething\sTcl\sdid\sfor\sme\sin\s8.4.\n\nProposal:\n\s\spackage\sifneeded\sp\s1.1\s{\spackage\sprovide\sp\s{1.1\s.7}\s}\n\n\s\sThe\s"full"\sversion\sof\sthe\spackage\sis\s[join\s$p_ver\s""],\si.e.\s1.1.7\n\nThis\sproposal\sis\sfully\sbackwards\scompatible,\sand\sdraws\sa\sclear\sline\sbetween\sversion\sinformation\sthat\sis\sseen\sby\sthe\spackage\smanager,\sand\sinfo\sthat\sis\snot.\n\nAdditionally:\n\na)\sThe\s"full"\sversion\swould\sprobably\sbe\sreturned\sby\s"package\spresent\sp".\n\nb)\sI\spropose\sto\sextend\s"package\spresent"\sto\sbe\susable\swithout\sarguments,\sin\swhich\scase\sit\swill\sreturn\sa\slist\sof\sname/full_version\spairs\s(an\salternative\sto\slooping\sover\s[package\snames]\sdoing\sa\s[package\spresent\s$name])\n\nc)\sI\sthink\sthis\sproposal\scan\shelp\sto\sclarify/solve\sthe\sideal\sbehaviour\sof\s-exact.\s\si.e.\s-exact\swill\sdo\san\sexact\s(effectively\sa\sstring\sidentity)\smatch\son\sthe\spart\sof\sthe\sversion\sthat\sthe\spackage\smanager\stakes\sdecisions\son\s(i.e.\s[lindex\s$pkg_ver\s0]),\sand\signore\ssub-version\sinformation.\n\n\n\n\n
J login twylite
J mimetype text/plain
J username twylite
K 1426692fffffffffffffffffffffffffffffffff
U twylite
Z 49ac906386f35bab5a6f3dbc5fbad9b7