Skip to content

Commit

Permalink
Merge pull request #24 from HistoryAtState/fix/pre-install
Browse files Browse the repository at this point in the history
fix: follow best-practices
  • Loading branch information
line-o authored Feb 18, 2025
2 parents df3397b + 0582a1b commit cf0b3c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pre-install.xql → pre-install.xq
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
xquery version "1.0";

import module namespace xdb="http://exist-db.org/xquery/xmldb";
import module namespace xmldb="http://exist-db.org/xquery/xmldb";

(: The following external variables are set by the repo:deploy function :)

Expand All @@ -15,7 +15,7 @@ declare function local:mkcol-recursive($collection, $components) {
if (exists($components)) then
let $newColl := concat($collection, "/", $components[1])
return (
xdb:create-collection($collection, $components[1]),
xmldb:create-collection($collection, $components[1]),
local:mkcol-recursive($newColl, subsequence($components, 2))
)
else
Expand All @@ -29,4 +29,4 @@ declare function local:mkcol($collection, $path) {

(: store the collection configuration :)
local:mkcol("/db/system/config", $target),
xdb:store-files-from-pattern(concat("/system/config", $target), $dir, "*.xconf")
xmldb:store-files-from-pattern(concat("/system/config", $target), $dir, "*.xconf")
2 changes: 1 addition & 1 deletion repo.xml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<copyright/>
<type>application</type>
<target>tags</target>
<prepare>pre-install.xql</prepare>
<prepare>pre-install.xq</prepare>
<finish/>
<permissions password="" user="hsg" group="hsg" mode="rw-rw-r--"/>
</meta>

0 comments on commit cf0b3c3

Please sign in to comment.