Changes

Jump to navigation Jump to search
684 bytes removed ,  14:19, 20 July 2022
no edit summary
=Conventions=
 
{{Mark|Updated with Version 9.0}}:
All functions and errors in this module are assigned to the <code><nowiki>http://basex.org/modules/repo</nowiki></code> namespace, which is statically bound to the {{Code|repo}} prefix.<br/>
{| width='100%'
|-valign="top"
| width='120' | '''Signatures'''
|{{Func|repo:install|$path uri as xs:string|empty-sequence()}}<br />|-valign="top"
| '''Summary'''
|Installs Retrieves and installs a package or replaces an existing package. The parameter from the given {{Code|$pathuri}} indicates the path to the package.<br />Existing packages are replaced.|-valign="top"
| '''Errors'''
|{{Error|not-found|#Errors}} a package does not exist.<br />{{Error|BXRE0003|#Errors}} the package to be installed requires a package which is still not installed.<br />{{Error|descriptor|#Errors}} the package descriptor is invalid.<br />{{Error|installed|#Errors}} the module contained in the package to be installed is already installed as part of another package.<br />{{Error|parse|#Errors}} an error occurred while parsing the package cannot be parsed.<br />{{Error|BXRE0009version|#Errors}} the package version is not supported.<br />{{Error|BXRE0010|#Errors}} the package contains an invalid JAR descriptor.<br />{{Error|BXRE0011|#Errors}} the package contains a JAR descriptor but it cannot be read.<br />{{Error|manifest|#Errors}} No 'Main-Class' attribute found in manifest of Java archive.
|}
{| width='100%'
|-valign="top"
| width='120' | '''Signatures'''
|{{Func|repo:delete|$pkg package as xs:string|empty-sequence()}}<br />|-valign="top"
| '''Summary'''
|Deletes a package. The parameter {{Code|$pkgpackage}} indicates either . The argument contains the package name as specified in the package descriptor or the name, optionally suffixed with a hyphen dash and the package version.<br />|-valign="top"
| '''Errors'''
|{{Error|not-found|#Errors}} a package does not exist.<br />{{Error|BXRE0007delete|#Errors}} the package cannot be deleted.<br />{{Error|BXRE0008|#Errors}} another package depends on the package to be deleted.<br />
|}
{| width='100%'
|-valign="top"
| width='120' | '''Signatures'''
|{{Func|repo:list||element(package)*}}<br />
|-valign="top"
| '''Summary'''
|Lists the names and versions of all currently installed packages.<br />
=Errors=
 
{{Mark|Updated with Version 9.0}}:
{| class="wikitable" width="100%"
! width="110"|Code
|Description
|-valign="top"|{{Code|delete}}|The package cannot be deleted because of dependencies, or because files are missing.|- valign="top"
|{{Code|descriptor}}
|The package descriptor is invalid.
|-valign="top"
|{{Code|installed}}
|The module contained in the package to be installed is already installed as part of another package.
|-valign="top"
|{{Code|not-found}}
|A package does not exist.
|-valign="top"
|{{Code|parse}}
|The package cannot be parsed.|-|{{Code|manifest}}|No 'Main-Class' attribute found in manifest of Java archive.   |-|{{Code|BXRE0007}}|The An error occurred while parsing the package cannot be deleted.|-valign="top"|{{Code|BXRE0008}}|Another package depends on the package to be deleted|-|{{Code|BXRE0009version}}
|The package version is not supported.
|-
|{{Code|BXRE0010}}
|The package contains an invalid JAR descriptor.
|-
|{{Code|BXRE0011}}
|The package contains a JAR descriptor but it cannot be read.
|}
;Version 9.0
* Updated: error codes updatesupdated; errors now use the module namespace
;Version 7.2.1
* Updated: [[#repo:install{{Function||repo:install]]}}: existing packages will be replaced* Updated: [[#repo:delete{{Function||repo:delete]]}}: remove specific version of a package
;Version 7.2
* Updated: [[#repo:list{{Function||repo:list]] }} now returns nodes
The module was introduced with Version 7.1.
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu