170
171
172
173
174
175
176
177
178
179
180
181
182
183
|
#
# NOTE: If a non-empty API key was specified on the command line then
# add it to the global list now.
#
if {[string length $apiKey] > 0} then {
lappend ::pkgr_api_keys $apiKey
}
#
# NOTE: Attempt to require the target package now. If this succeeds
# -AND- the Package Downloader Client was used, the package will
# be persisted locally; otherwise, the [package ifneeded] script
# may still be evaluated; however, the effects may not actually
# cause anything to persist.
|
>
>
>
>
>
>
>
>
>
>
|
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
|
#
# NOTE: If a non-empty API key was specified on the command line then
# add it to the global list now.
#
if {[string length $apiKey] > 0} then {
lappend ::pkgr_api_keys $apiKey
}
#
# NOTE: For Eagle, make sure that the [package unknown] handler will be
# used for the current interpreter.
#
if {[isEagle]} then {
object invoke -flags +NonPublic Interpreter.GetActive InterpreterFlags \
[appendArgs [object invoke -flags +NonPublic Interpreter.GetActive \
InterpreterFlags] " -NoPackageUnknown"]
}
#
# NOTE: Attempt to require the target package now. If this succeeds
# -AND- the Package Downloader Client was used, the package will
# be persisted locally; otherwise, the [package ifneeded] script
# may still be evaluated; however, the effects may not actually
# cause anything to persist.
|