Skip to content

Commit

Permalink
pkg/mods/epm: Remove dependency on external dirname and mkdir.
Browse files Browse the repository at this point in the history
This fixes #1661.
  • Loading branch information
xiaq committed Dec 31, 2024
1 parent 0b62bf4 commit 38de08a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/mods/epm/epm.elv
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ use str
use platform

pragma unknown-command = disallow
var dirname~ = $e:dirname~
var mkdir~ = $e:mkdir~
var git~ = $e:git~
var rsync~ = $e:rsync~

Expand Down Expand Up @@ -116,7 +114,7 @@ set -method-handler = [
&install= {|pkg dom-cfg|
var dest = (dest $pkg)
-info "Installing "$pkg
mkdir -p $dest
os:mkdir-all $dest
git clone ($-method-handler[git][src] $pkg $dom-cfg) $dest
}

Expand Down Expand Up @@ -170,7 +168,7 @@ fn -package-metadata-file {|pkg|

fn -write-domain-config {|dom|
var cfgfile = (-domain-config-file $dom)
mkdir -p (dirname $cfgfile)
os:mkdir-all $managed-dir/$dom
if (has-key $-default-domain-config $dom) {
put $-default-domain-config[$dom] | to-json > $cfgfile
} else {
Expand Down

0 comments on commit 38de08a

Please sign in to comment.