Diff
Not logged in

Differences From Artifact [5d0b4ee1f3]:

To Artifact [4ee491b388]:


457
458
459
460
461
462
463


464
465
466
467
468
469
470
471
472
473
474
475
476
477
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471

472
473
474
475
476
477
478







+
+






-







  }

  #
  # NOTE: This procedure returns the base URI for the package repository
  #       server.  There are no arguments.
  #
  proc getLookupBaseUri {} {
    global env

    set varName [appendArgs [getLookupVarNamePrefix] base_uri]

    if {[info exists $varName]} then {
      return [set $varName]
    }

    global env
    set varName [string trim $varName :]

    if {[info exists env($varName)]} then {
      return $env($varName)
    }

    return https://urn.to/r/pkg; # NOTE: System default.
1624
1625
1626
1627
1628
1629
1630

1631
1632
1633
1634
1635
1636






1637
1638
1639
1640
1641
1642
1643
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651







+






+
+
+
+
+
+







  #       script file, if it exists.  Any script errors raised are not
  #       masked.  The script argument must be the fully qualified path
  #       and file name for the primary package repository client script
  #       file.
  #
  # <public>
  proc maybeReadSettingsFile { script } {
    global env
    global tcl_platform

    if {[string length $script] == 0 || \
        ![file exists $script] || ![file isfile $script]} then {
      return
    }

    set scriptName [string toupper [file rootname [file tail $script]]]

    if {[info exists [appendArgs env(NO_SETTINGS_ $scriptName )]]} then {
      return
    }

    set prefixes [list]

    if {[info exists tcl_platform(user)]} then {
      lappend prefixes $tcl_platform(user)
    }