Index: doc/v1.html ================================================================== --- doc/v1.html +++ doc/v1.html @@ -1,8 +1,28 @@
+This procedure was stolen from the "getEagle.tcl" script. It is
+designed to process a single HTTP request, including any HTTP
+3XX redirects (up to the specified limit), and return the raw
+HTTP response data. It may raise any number of script errors.
+
@@ -11,11 +31,11 @@ parameters used by this package. If the force argument is
non-zero, any existing values will be overwritten and set back
to their default values.
@@ -38,11 +58,11 @@ designed to emit a message to the HTTP client log. The string
argument is the content of the message to emit. If the string
argument is an empty string, nothing is written.
-This procedure was stolen from the "getEagle.tcl" script. It is
-designed to process a single HTTP request, including any HTTP
-3XX redirects (up to the specified limit), and return the raw
-HTTP response data. It may raise any number of script errors.
-
-This procedure emits a message to the package downloader client
-log. The string argument is the content of the message to emit.
-
-This procedure sets up the default values for all URN configuration
-parameters used by the package downloader client. If the force
-argument is non-zero, any existing values will be overwritten and
-set back to their default values.
-
-This procedure sets up the default values for all version
-configuration parameters used by the package downloader client.
-If the force argument is non-zero, any existing values will be
-overwritten and set back to their default values.
-
-This procedure sets up the default values for all URI configuration
-parameters used by the package downloader client. If the force
-argument is non-zero, any existing values will be overwritten and
-set back to their default values.
-
-This procedure sets up the default values for all configuration
-parameters used by the package downloader client. The script
-argument is the fully qualified path and file name for the script
-being evaluated.
-
@@ -149,11 +91,11 @@ backend file servers may be used. The serverId argument must
consist only of alphanumeric characters and it must begin with
a letter.
@@ -160,262 +102,11 @@ This procedure modifies the version variables used by the package
downloader client so that a specific version will be used. The
versionId argument must consist only of hexadecimal characters.
-This procedure escapes a single name/value pair for use in a URI
-query string. The name argument is the name of the parameter.
-The value argument is the value of the parameter.
-
-This procedure returns the root directory where any packages that
-are downloaded should be saved to permanent storage for subsequent
-use. There are no arguments.
-
-This procedure checks the configured persistent root directory for
-downloaded packages. If any checks fail, a script error is raised.
-There are no arguments. The return value is undefined.
-
-This procedure returns the name of the package index file for the
-language specified by the language argument. An empty string will
-be returned if the language is unsupported or unrecognized.
-
-This procedure, which is only used for native Tcl, generates a
-"master" package index file (i.e. "pkgIndex.tcl") suitable for
-use with native Tcl 8.4 (or higher). It will recursively scan
-for all other native Tcl package index files that are within the
-configured persistent root directory and [source] them, thereby
-causing all packages located within them to become available.
-Since Eagle (by default) already performs recursive searches for
-its package index files, this procedure is not needed for Eagle.
-The return value is undefined.
-
-This procedure attempts to download the Package Signing Keys from
-the remote server and save it to a local file. This procedure may
-raise script errors. The fileName argument is the name of the file
-where the downloaded data should be written. This procedure is only
-intended to be used from the "pkgr_setup.eagle" tool script and may
-go away in later versions of this package.
-
-This procedure returns non-zero if the specified file seems to be
-an OpenPGP signature file. The fileName argument is the name of
-the file to check, which may or may not exist. The nameOnly
-argument should be non-zero to ignore the contents of the file.
-
-This procedure returns the auto-path for the language specified by
-the language argument. An empty list is returned if the auto-path
-does not exist in the target language. This procedure may raise
-script errors.
-
-This procedure adds a directory to the auto-path of the specified
-language (i.e. native Tcl or Eagle). The directory will not be
-added if it is already present. The language argument must be the
-literal string "eagle" or the literal string "tcl". The directory
-argument is the fully qualified path for the directory to add to
-the auto-path.
-
-This procedure adds a directory to the auto-path of the specified
-language (i.e. native Tcl or Eagle). The directory will not be
-added if it is already present. The language argument must be the
-literal string "eagle" or the literal string "tcl". The directory
-argument is the fully qualified path for the directory to add to
-the auto-path. The directory will not be added if it falls under
-a directory already in the auto-path.
-
-This procedure attempts to verify that an instance of Mono and its
-associated runtimes are installed locally. There are no arguments.
-The return value is non-zero if Mono appears to be installed and
-available for use; otherwise, the return value is zero.
-
-This procedure attempts to verify that some runtime is available to
-run CLR applications locally (e.g. the .NET Framework or Mono JIT).
-There are no arguments. The return value is non-zero if it appears
-that CLR applications should be runnable locally; otherwise, the
-return value is zero.
-
-This procedure verifies that the specified value is indeed a valid
-package name. The packageName argument is the value to verify.
-This procedure may raise script errors.
-
-This procedure verifies that the specified value is indeed a valid
-patch level. The patchLevel argument is the value to verify. This
-procedure may raise script errors.
-
-This procedure verifies the combination of language and version
-specified by the caller. The language argument must be one of the
-literal strings "eagle", "tcl", or "client". The version argument
-must be one of the literal strings "8.4", "8.5", or "8.6" when the
-language is "tcl" -OR- the literal string "1.0" when the language
-is "eagle". When the language is "client", the version match the
-major and minor portions of "1.0" and any remaining portions must
-be numeric. The varName argument is the name of a scalar variable
-in the context of the immediate caller that will receive a boolean
-value indicating if the specified language is actually a reference
-to the package downloader client itself.
-
-This procedure returns the name of the current platform. There are
-no arguments. An empty string will be returned if the name of the
-current platform cannot be determined for any reason.
-
-This procedure verifies that the specified value is indeed a valid
-version identifier. The versionId argument is the value to verify.
-This procedure may raise script errors.
-
-This procedure verifies the platform specified by the caller. The
-platform argument must be an empty string -OR- one of the literal
-strings "msil" or "neutral", or one of the values returned by the
-[getPlatform] procedure. An empty string means that the associated
-entity does not require a specific platform. The varName argument
-is the name of a variable in the context of the immediate caller
-that will receive a modified platform name, if applicable. Upon
-failure, a script error will be raised. The return value is
-undefined.
-
-This procedure issues a request to an HTTP(S) server. It returns
-the raw response data verbatim. It may raise a script error. It
-will always use the currently configured HTTP(S) login cookie, if
-any; therefore, it should really only be used for requests to the
-package file server. The uri argument is the fully qualified URI
-to request.
-
-This procedure returns the prefix for fully qualified variable
-names that MAY be present in the global namespace. There are
-no arguments.
-
This procedure resets the currently configured login cookie, if
any, and then attempts to login using the configured package
repository server API key -OR- using the public access account.
@@ -422,21 +113,11 @@ Upon success, it will set the login cookie to the one from the
raw response data. Upon failure, a script error will be raised.
There are no arguments.
-This procedure attempts to login using the configured package
-repository server API key -OR- using the public access account,
-if not already logged in. Upon success, it will set the login
-cookie to the one from the raw response data. Upon failure, a
-script error will be raised. There are no arguments.
-
This procedure attempts to logout using the currently configured
login cookie, if any, and then resets the login cookie. There
are no arguments. This procedure may raise a script error.
-This procedure returns a unique temporary directory where one or
-more files may be saved. The prefix argument is a prefix for the
-directory name and it may be an empty string. There is no attempt
-to actually create the resulting directory.
-
-This procedure attempts to guess a package name based on a list of
-its files. It relies upon the fact that all packages must include
-a package index file. The language argument must be one of the
-literal strings "eagle", "tcl", or "client". The fileNames argument
-must be the list of file names to be downloaded. The package name,
-if one can be detected, is returned; otherwise, an empty string will
-be returned.
-
-This procedure downloads a manitest from the package file server,
-writing its contents to the specified local file name. It can also
-verify the OpenPGP signature. The language argument must be one of
-the literal strings "eagle", "tcl", or "client". The version
-argument must be one of the literal strings "8.4", "8.5", or "8.6"
-when the language is "tcl" -OR- the literal string "1.0" when the
-language is either "eagle" or "client". The packageName argument
-is a directory name relative to the language and version-specific
-directory on the package file server and may be an empty string.
-The fileNames argument is the list of file names to be downloaded.
-The usePgp argument should be non-zero when an OpenPGP signature
-needs to be verified for the downloaded file.
-
-This procedure downloads a single URI from the package file server
-and writes the result to a local file. The localFileName argument
-is the file name where the downloaded file should be written. The
-The uri argument is the URI to download. The usePgp argument should
-be non-zero when the OpenPGP signature file needs to be verified for
-the downloaded file. The return value is undefined.
-
-This procedure downloads a single file from the package file server,
-writing its contents to the specified local file name. It can also
-verify the OpenPGP signatures. When an OpenPGP signature file is
-downloaded, this procedure assumes the corresponding data file was
-already downloaded (i.e. since OpenPGP needs both to perform the
-signature checks). The language argument must be one of the
-literal strings "eagle", "tcl", or "client". The version argument
-must be one of the literal strings "8.4", "8.5", or "8.6" when the
-language is "tcl" -OR- the literal string "1.0" when the language
-is either "eagle" or "client". The platform argument must be an
-empty string -OR- one of the literal strings "msil" or "neutral", or
-one of the values returned by the [getPlatform] procedure. An empty
-string means that the associated package does not require a specific
-platform. The fileName argument is a file name relative to the
-language and version-specific directory on the package file server.
-The localFileName argument is the file name where the downloaded
-file should be written. The usePgp argument should be non-zero when
-the OpenPGP signature file needs to be verified for the downloaded
-file.
-
+This procedure attempts to download the Package Signing Keys from
+the remote server and save it to a local file. This procedure may
+raise script errors. The fileName argument is the name of the file
+where the downloaded data should be written. This procedure is only
+intended to be used from the "pkgr_setup.eagle" tool script and may
+go away in later versions of this package.
+
+This procedure verifies that the specified value is indeed a valid
+package name. The packageName argument is the value to verify.
+This procedure may raise script errors.
+
+This procedure verifies that the specified value is indeed a valid
+patch level. The patchLevel argument is the value to verify. This
+procedure may raise script errors.
+
+This procedure verifies the combination of language and version
+specified by the caller. The language argument must be one of the
+literal strings "eagle", "tcl", or "client". The version argument
+must be one of the literal strings "8.4", "8.5", or "8.6" when the
+language is "tcl" -OR- the literal string "1.0" when the language
+is "eagle". When the language is "client", the version match the
+major and minor portions of "1.0" and any remaining portions must
+be numeric. The varName argument is the name of a scalar variable
+in the context of the immediate caller that will receive a boolean
+value indicating if the specified language is actually a reference
+to the package downloader client itself.
+
+This procedure returns the name of the current platform. There are
+no arguments. An empty string will be returned if the name of the
+current platform cannot be determined for any reason.
+
+This procedure verifies that the specified value is indeed a valid
+version identifier. The versionId argument is the value to verify.
+This procedure may raise script errors.
+
+This procedure verifies the platform specified by the caller. The
+platform argument must be an empty string -OR- one of the literal
+strings "msil" or "neutral", or one of the values returned by the
+[getPlatform] procedure. An empty string means that the associated
+entity does not require a specific platform. The varName argument
+is the name of a variable in the context of the immediate caller
+that will receive a modified platform name, if applicable. Upon
+failure, a script error will be raised. The return value is
+undefined.
+
+This procedure attempts to login using the configured package
+repository server API key -OR- using the public access account,
+if not already logged in. Upon success, it will set the login
+cookie to the one from the raw response data. Upon failure, a
+script error will be raised. There are no arguments.
+
+This procedure emits a message to the package downloader client
+log. The string argument is the content of the message to emit.
+
This procedure sets up the default values for all URN configuration
-parameters used by the package repository client. If the force
+parameters used by the package downloader client. If the force
argument is non-zero, any existing values will be overwritten and
set back to their default values.
+This procedure sets up the default values for all version
+configuration parameters used by the package downloader client.
+If the force argument is non-zero, any existing values will be
+overwritten and set back to their default values.
+
This procedure sets up the default values for all URI configuration
-parameters used by the package repository client. If the force
+parameters used by the package downloader client. If the force
argument is non-zero, any existing values will be overwritten and
set back to their default values.
-This procedure returns a string argument value, which may contain
-spaces, for use with the [exec] command. The value argument is
-the string value to format as an [exec] argument.
-
-This procedure returns a formatted, possibly version-specific,
-package name, for use in logging. The package argument is the
-name of the package. The version argument is the version of the
-package.
-
-This procedure returns a formatted script result. If the string
-result is empty, only the return code is used. The code argument
-must be an integer Tcl return code (e.g. from [catch]) and the
-result argument is the script result or error message.
-
-This procedure emits a message to the package repository client
-log. The string argument is the content of the message to emit.
-
-This procedure attempts to determine if a string is a valid list
-and returns non-zero when that is true. The value argument is
-the string to check.
-
+This procedure sets up the default values for all configuration
+parameters used by the package downloader client. The script
+argument is the fully qualified path and file name for the script
+being evaluated.
+
+This procedure escapes a single name/value pair for use in a URI
+query string. The name argument is the name of the parameter.
+The value argument is the value of the parameter.
+
+This procedure returns the root directory where any packages that
+are downloaded should be saved to permanent storage for subsequent
+use. There are no arguments.
+
+This procedure checks the configured persistent root directory for
+downloaded packages. If any checks fail, a script error is raised.
+There are no arguments. The return value is undefined.
+
+This procedure returns the name of the package index file for the
+language specified by the language argument. An empty string will
+be returned if the language is unsupported or unrecognized.
+
+This procedure, which is only used for native Tcl, generates a
+"master" package index file (i.e. "pkgIndex.tcl") suitable for
+use with native Tcl 8.4 (or higher). It will recursively scan
+for all other native Tcl package index files that are within the
+configured persistent root directory and [source] them, thereby
+causing all packages located within them to become available.
+Since Eagle (by default) already performs recursive searches for
+its package index files, this procedure is not needed for Eagle.
+The return value is undefined.
+
+This procedure returns non-zero if the specified file seems to be
+an OpenPGP signature file. The fileName argument is the name of
+the file to check, which may or may not exist. The nameOnly
+argument should be non-zero to ignore the contents of the file.
+
+This procedure returns the auto-path for the language specified by
+the language argument. An empty list is returned if the auto-path
+does not exist in the target language. This procedure may raise
+script errors.
+
+This procedure adds a directory to the auto-path of the specified
+language (i.e. native Tcl or Eagle). The directory will not be
+added if it is already present. The language argument must be the
+literal string "eagle" or the literal string "tcl". The directory
+argument is the fully qualified path for the directory to add to
+the auto-path.
+
+This procedure adds a directory to the auto-path of the specified
+language (i.e. native Tcl or Eagle). The directory will not be
+added if it is already present. The language argument must be the
+literal string "eagle" or the literal string "tcl". The directory
+argument is the fully qualified path for the directory to add to
+the auto-path. The directory will not be added if it falls under
+a directory already in the auto-path.
+
+This procedure attempts to verify that an instance of Mono and its
+associated runtimes are installed locally. There are no arguments.
+The return value is non-zero if Mono appears to be installed and
+available for use; otherwise, the return value is zero.
+
+This procedure attempts to verify that some runtime is available to
+run CLR applications locally (e.g. the .NET Framework or Mono JIT).
+There are no arguments. The return value is non-zero if it appears
+that CLR applications should be runnable locally; otherwise, the
+return value is zero.
+
+This procedure issues a request to an HTTP(S) server. It returns
+the raw response data verbatim. It may raise a script error. It
+will always use the currently configured HTTP(S) login cookie, if
+any; therefore, it should really only be used for requests to the
+package file server. The uri argument is the fully qualified URI
+to request.
+
+This procedure returns the prefix for fully qualified variable
+names that MAY be present in the global namespace. There are
+no arguments.
+
+This procedure returns a unique temporary directory where one or
+more files may be saved. The prefix argument is a prefix for the
+directory name and it may be an empty string. There is no attempt
+to actually create the resulting directory.
+
+This procedure attempts to guess a package name based on a list of
+its files. It relies upon the fact that all packages must include
+a package index file. The language argument must be one of the
+literal strings "eagle", "tcl", or "client". The fileNames argument
+must be the list of file names to be downloaded. The package name,
+if one can be detected, is returned; otherwise, an empty string will
+be returned.
+
+This procedure downloads a manitest from the package file server,
+writing its contents to the specified local file name. It can also
+verify the OpenPGP signature. The language argument must be one of
+the literal strings "eagle", "tcl", or "client". The version
+argument must be one of the literal strings "8.4", "8.5", or "8.6"
+when the language is "tcl" -OR- the literal string "1.0" when the
+language is either "eagle" or "client". The packageName argument
+is a directory name relative to the language and version-specific
+directory on the package file server and may be an empty string.
+The fileNames argument is the list of file names to be downloaded.
+The usePgp argument should be non-zero when an OpenPGP signature
+needs to be verified for the downloaded file.
+
+This procedure downloads a single URI from the package file server
+and writes the result to a local file. The localFileName argument
+is the file name where the downloaded file should be written. The
+The uri argument is the URI to download. The usePgp argument should
+be non-zero when the OpenPGP signature file needs to be verified for
+the downloaded file. The return value is undefined.
+
+This procedure downloads a single file from the package file server,
+writing its contents to the specified local file name. It can also
+verify the OpenPGP signatures. When an OpenPGP signature file is
+downloaded, this procedure assumes the corresponding data file was
+already downloaded (i.e. since OpenPGP needs both to perform the
+signature checks). The language argument must be one of the
+literal strings "eagle", "tcl", or "client". The version argument
+must be one of the literal strings "8.4", "8.5", or "8.6" when the
+language is "tcl" -OR- the literal string "1.0" when the language
+is either "eagle" or "client". The platform argument must be an
+empty string -OR- one of the literal strings "msil" or "neutral", or
+one of the values returned by the [getPlatform] procedure. An empty
+string means that the associated package does not require a specific
+platform. The fileName argument is a file name relative to the
+language and version-specific directory on the package file server.
+The localFileName argument is the file name where the downloaded
+file should be written. The usePgp argument should be non-zero when
+the OpenPGP signature file needs to be verified for the downloaded
+file.
+
@@ -736,11 +652,11 @@ looks like a Harpy (script) certificate. The value argument is
the string to check. The value 14 used within this procedure is
the length of the literal string "</Certificate>".
@@ -748,11 +664,11 @@ looks like an OpenPGP signature. The value argument is the string
to check. The value 27 used within this procedure is the length
of the literal string "-----END PGP SIGNATURE-----".
@@ -759,40 +675,20 @@ This procedure returns the fully qualified name of the directory
where temporary files should be written. The envVarName argument
is an optional extra environment variable to check (first).
-This procedure returns a unique temporary file name. A script
-error is raised if this task cannot be accomplished. There are
-no arguments.
-
-This procedure attempts to check for an OpenPGP installation being
-installed at the default location. There are no arguments. If the
-OpenPGP installation is detected and is not yet present in the PATH,
-an attempt will be made to add it. Non-zero will be returned if the
-OpenPGP installation directory was successfully detected and added
-to the PATH -OR- detecting and adding it was not necessary because
-it already appeared to be available for use.
-
This procedure attempts to verify that a configured implementation
of OpenPGP is installed locally. There are no arguments. Script
errors are raised if any problems are found. The return value is
undefined.
@@ -802,19 +698,107 @@ not be raised by this procedure. The fileName argument must be
the fully qualified path and file name of the OpenPGP signature
file to verify.
-This procedure returns the name of the file containing the OpenPGP
-passphrase. This procedure is only used when creating an OpenPGP
-signature. There are no arguments.
+This procedure attempts to create an OpenPGP signature for the
+specified (named) file. Non-zero is only returned if the OpenPGP
+signature is created successfully. A script error should not be
+raised by this procedure. The fileName argument must be the fully
+qualified path and file name of the file to be signed.
+This procedure returns a name suffix (directory, variable, etc)
+that is unique to the running process at the current point in
+time. It is used (internally) to avoid name collisions with any
+preexisting variables or commands that may be present in the
+global namespace. The paranoia argument represents the relative
+level of paranoia required by the caller; the higher this level,
+the more uniqueness is required.
+
+This procedure modifies the URN variables used by the package
+repository client so that one or more alternative (private?)
+backend repository servers may be used. The serverId argument
+must consist only of alphanumeric characters and it must begin
+with a letter.
+
+This procedure evaluates the package repository client settings
+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.
+
+This procedure is the primary entry point to the package repository
+client. It attempts to lookup the specified package using the
+currently configured package repository server. The package
+argument is the name of the package being sought, it cannot be an
+empty string. The version argument must be a specific version -OR-
+a package specification that conforms to TIP #268. The caller
+argument must be an empty string -OR- the literal string "handler".
+
+This procedure returns a string argument value, which may contain
+spaces, for use with the [exec] command. The value argument is
+the string value to format as an [exec] argument.
+
+This procedure attempts to check for an OpenPGP installation being
+installed at the default location. There are no arguments. If the
+OpenPGP installation is detected and is not yet present in the PATH,
+an attempt will be made to add it. Non-zero will be returned if the
+OpenPGP installation directory was successfully detected and added
+to the PATH -OR- detecting and adding it was not necessary because
+it already appeared to be available for use.
+
@@ -825,24 +809,11 @@ fully qualified path and file name of the file to be signed. This
procedure assumes that the Harpy package for Eagle is installed and
ready for use (i.e. it can find a valid license certificate).
-This procedure attempts to create an OpenPGP signature for the
-specified (named) file. Non-zero is only returned if the OpenPGP
-signature is created successfully. A script error should not be
-raised by this procedure. The fileName argument must be the fully
-qualified path and file name of the file to be signed.
-
-This procedure returns the prefix for fully qualified variable
-names that MAY be present in the global namespace. There are
-no arguments.
-
-This procedure returns a name suffix (directory, variable, etc)
-that is unique to the running process at the current point in
-time. It is used (internally) to avoid name collisions with any
-preexisting variables or commands that may be present in the
-global namespace. The paranoia argument represents the relative
-level of paranoia required by the caller; the higher this level,
-the more uniqueness is required.
-
@@ -907,11 +855,11 @@ This procedure verifies the language specified by the caller. The
language argument must be an empty string -OR- the literal string
"Eagle" or "Tcl". This procedure may raise script errors.
@@ -918,40 +866,181 @@ This procedure verifies that the specified value is indeed a valid
server identifier. The serverId argument is the value to verify.
This procedure may raise script errors.
-This procedure modifies the URN variables used by the package
-repository client so that one or more alternative (private?)
-backend repository servers may be used. The serverId argument
-must consist only of alphanumeric characters and it must begin
-with a letter.
-
-This procedure returns the base URI for the package repository
-server endpoint that is used to lookup packages. There are no
-arguments.
-
This procedure returns the base URI for the package repository
server endpoint that is used to submit packages. There are no
arguments.
+This procedure attempts to extract the lookup code from the raw
+HTTP response data. The data argument is the raw HTTP response
+data. An empty string is returned if no lookup code is available.
+
+This procedure attempts to extract the lookup result from the raw
+HTTP response data. The data argument is the raw HTTP response
+data. An empty string is returned if no lookup result is available.
+
+This procedure returns non-zero if the specified lookup response
+code indicates success. The code argument is the extracted HTTP
+lookup response code.
+
+This procedure is designed for Eagle. It attempts to load the
+"best" native Tcl library. It may raise any number of script
+errors. There are no arguments.
+
+This procedure, which may only be used from a native Tcl script,
+checks if Garuda and Eagle are loaded and ready. If not, a script
+error is raised. There are no arguments.
+
+This procedure is designed for native Tcl. It attempts to load
+the Garuda package and gain access to Eagle. It may raise any
+number of script errors. There are no arguments.
+
+This procedure sets up the default values for all URN configuration
+parameters used by the package repository client. If the force
+argument is non-zero, any existing values will be overwritten and
+set back to their default values.
+
+This procedure sets up the default values for all URI configuration
+parameters used by the package repository client. If the force
+argument is non-zero, any existing values will be overwritten and
+set back to their default values.
+
+This procedure returns a formatted, possibly version-specific,
+package name, for use in logging. The package argument is the
+name of the package. The version argument is the version of the
+package.
+
+This procedure returns a formatted script result. If the string
+result is empty, only the return code is used. The code argument
+must be an integer Tcl return code (e.g. from [catch]) and the
+result argument is the script result or error message.
+
+This procedure emits a message to the package repository client
+log. The string argument is the content of the message to emit.
+
+This procedure attempts to determine if a string is a valid list
+and returns non-zero when that is true. The value argument is
+the string to check.
+
+This procedure returns a unique temporary file name. A script
+error is raised if this task cannot be accomplished. There are
+no arguments.
+
+This procedure returns the name of the file containing the OpenPGP
+passphrase. This procedure is only used when creating an OpenPGP
+signature. There are no arguments.
+
+This procedure returns the prefix for fully qualified variable
+names that MAY be present in the global namespace. There are
+no arguments.
+
+This procedure returns the base URI for the package repository
+server endpoint that is used to lookup packages. There are no
+arguments.
+
@@ -997,11 +1086,11 @@ returned, if appropriate (i.e. any version should be allowed).
The requirement argument must be a package specification that
conforms to TIP #268.
-This procedure attempts to extract the lookup code from the raw
-HTTP response data. The data argument is the raw HTTP response
-data. An empty string is returned if no lookup code is available.
-
-This procedure attempts to extract the lookup result from the raw
-HTTP response data. The data argument is the raw HTTP response
-data. An empty string is returned if no lookup result is available.
-
-This procedure returns non-zero if the specified lookup response
-code indicates success. The code argument is the extracted HTTP
-lookup response code.
-
This procedure, which may only be used from an Eagle script, checks
if a native Tcl library is loaded and ready. If not, a script error
is raised. There are no arguments.
-This procedure is designed for Eagle. It attempts to load the
-"best" native Tcl library. It may raise any number of script
-errors. There are no arguments.
-
-This procedure, which may only be used from a native Tcl script,
-checks if Garuda and Eagle are loaded and ready. If not, a script
-error is raised. There are no arguments.
-
-This procedure is designed for native Tcl. It attempts to load
-the Garuda package and gain access to Eagle. It may raise any
-number of script errors. There are no arguments.
-
This procedure returns non-zero if the current script is being
evaluated in Eagle with signed-only script security enabled.
There are no arguments.
@@ -1154,11 +1186,11 @@ is the name of an array variable in the call frame of the
immediate caller, that contains the package lookup metadata. This
procedure may raise script errors.
@@ -1196,49 +1228,49 @@ downloaded, i.e. because it is not required for the downloading
process itself to be functional, etc. The package argument is
the name of the package to check.
This procedure performs initial setup of the package repository
client, using the current configuration parameters. There are
no arguments. It may load the Garuda package when evaluated in
native Tcl. It may load a native Tcl library when evaluated in
Eagle. It may install the [package unknown] hook.
This procedure returns non-zero if the [package unknown] handler
has already been hooked by the package repository client. There
are no arguments.
This procedure attempts to hook the [package unknown] handler. It
will raise a script error if this has already been done. The old
[package unknown] handler is saved and will be used by the new one
as part of the overall package loading process. There are no
arguments.
This procedure attempts to unhook the [package unknown] handler.
It will raise a script error if the [package unknown] handler is
not hooked. The old [package unknown] handler is restored and
the saved [package unknown] handler is cleared. There are no
arguments.
-This procedure evaluates the package repository client settings
-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.
-
This procedure evaluates a package repository client API keys
script file, if it has been configured -AND- actually exists.
Any script errors raised are not masked. The evaluated script
@@ -1288,62 +1307,92 @@ file should (normally) modify the "::pkgr_api_keys" variable
in order to add API keys for use with the package repository
client.
This procedure sets up the default values for all configuration
parameters used to interact with the OpenPGP implementation.
There are no arguments.
This procedure sets up the default values for all configuration
parameters used by the package repository client. There are no
arguments.
+This procedure initializes the array containing data derived from
+the command line arguments, if any. The argv argument should be
+the list of command line arguments.
+
+This procedure is used to determine if all the package submission
+data is available. There are no arguments. Non-zero is returned
+if all the package submission data is available. This procedure
+should not raise script errors.
+
+This procedure is an event handler. It handles the submit button in
+both Tk and Eagle. It starts the package submission process. The
+args argument is not really used, it is a placeholder to make this
+procedure more portable between Tcl and Eagle. This procedure may
+raise script errors.
+
+This procedure creates the user interface for this tool using Eagle
+and WinForms. The existing argument data, if any, will be used to
+populate it. There are no arguments.
+
-This procedure is the primary entry point to the package repository
-client. It attempts to lookup the specified package using the
-currently configured package repository server. The package
-argument is the name of the package being sought, it cannot be an
-empty string. The version argument must be a specific version -OR-
-a package specification that conforms to TIP #268. The caller
-argument must be an empty string -OR- the literal string "handler".
+This procedure creates the user interface for this tool using Tcl
+and Tk. The existing argument data, if any, will be used to
+populate it. There are no arguments.
This procedure sets up the default values for all configuration
parameters used by the package uploader client. There are no
arguments.
This procedure sets up the default values for all configuration
parameters used by the package uploader client that require the
location of the checkout directory. There are no arguments.
@@ -1352,11 +1401,11 @@ value argument is the string value to format. No return value is
reserved to indicate an error. This procedure may not raise any
script errors.
@@ -1379,11 +1428,11 @@ fileNames argument is the list of (fully?) qualified file names to
process. This procedure may not raise script errors. If there is
no common containing directory, an empty string is returned.
This procedure returns the full URI to use when submitting a new
package to the package repository server. There are no arguments.
This procedure may raise script errors.
This procedure attempts to query the identifier of the Fossil
checkout. There are no arguments. An empty string is returned if
the information cannot be determined.
This procedure attempts to query the root directory of the Fossil
checkout. There are no arguments. An empty string is returned if
the information cannot be determined.
This procedure builds a native path using the specified parts and
returns it. All arguments are considered to be parts of the path.
This procedure attempts to verify that the root directory of the
Fossil checkout is present, valid, and is actually a directory.
There are no arguments. Script errors will be raised if any of
the checks fail.
This procedure attempts to verify that an implementation of Fossil
is installed locally. There are no arguments. Script errors are
raised if any problems are found. The return value is undefined.
This procedure attempts to verify that the checkout directory does
not contain any (stray) changes. There are no arguments. Non-zero
is returned if the verification is successful.
This procedure attempts to verify that the checkout directory does
belong to the correct project. There are no arguments. Non-zero
is returned if the verification is successful.
This procedure attempts to verify that the checkout directory does
belong to the correct branch. There are no arguments. Non-zero
is returned if the verification is successful.
This procedure attempts to change the branch for the checkout
directory. There are no arguments. This procedure may raise
script errors.
-This procedure initializes the array containing data derived from
-the command line arguments, if any. The argv argument should be
-the list of command line arguments.
-
-This procedure is used to determine if all the package submission
-data is available. There are no arguments. Non-zero is returned
-if all the package submission data is available. This procedure
-should not raise script errors.
-
@@ -1695,24 +1724,11 @@ args argument is not really used, it is a placeholder to make this
procedure more portable between Tcl and Eagle. This procedure may
raise script errors.
-This procedure is an event handler. It handles the submit button in
-both Tk and Eagle. It starts the package submission process. The
-args argument is not really used, it is a placeholder to make this
-procedure more portable between Tcl and Eagle. This procedure may
-raise script errors.
-
@@ -1720,22 +1736,6 @@ Tk and Eagle. It is used to clear the package submission data. The
args argument is not really used, it is a placeholder to make this
procedure more portable between Tcl and Eagle. This procedure may
raise script errors.
-This procedure creates the user interface for this tool using Eagle
-and WinForms. The existing argument data, if any, will be used to
-populate it. There are no arguments.
-
-This procedure creates the user interface for this tool using Tcl
-and Tk. The existing argument data, if any, will be used to
-populate it. There are no arguments.
-