File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
extensions/modules/expathrepo/src/main/resources/org/exist/xquery/modules/expathrepo Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ declare %private function repair:repair-callback($collection as xs:anyURI, $incl
85
85
};
86
86
87
87
declare function repair:is-installed ($name as xs:string) as xs:boolean {
88
- exists (filter (function ($pkg) { $pkg = $name }, repo:list () ))
88
+ exists (filter (repo:list (), function ($pkg) { $pkg = $name }))
89
89
};
90
90
91
91
(:~ Scan a collection tree recursively starting at $root. Call $func once for each collection found :)
@@ -97,9 +97,9 @@ declare %private function repair:scan-collections($root as xs:anyURI, $func as f
97
97
};
98
98
99
99
declare %private function repair:find-resources-to-zip ($collection as xs:anyURI) {
100
- filter (function ($name) {
100
+ filter (xmldb:get-child-resources ($collection), function ($name) {
101
101
$name = ("expath-pkg.xml" , "repo.xml" , "exist.xml" ) or starts-with ($name, "icon" )
102
- }, xmldb:get-child-resources ($collection) )
102
+ })
103
103
};
104
104
105
105
declare %private function repair:resources-to-zip ($expathConf as element (expath:package), $collection as xs:anyURI) {
You can’t perform that action at this time.
0 commit comments