Update babel.nim
remove old, unversioned package dir
This commit is contained in:
parent
f2a47a00a1
commit
7ab81d52eb
1 changed files with 5 additions and 0 deletions
|
|
@ -212,6 +212,11 @@ proc installFromDir(dir: string, latest: bool): string =
|
||||||
echo(pkgInfo.name & " installed successfully.")
|
echo(pkgInfo.name & " installed successfully.")
|
||||||
result = pkgDestDir
|
result = pkgDestDir
|
||||||
|
|
||||||
|
|
||||||
|
## remove old unversioned directory
|
||||||
|
if not latest:
|
||||||
|
removeDir libsDir / pkgInfo.name
|
||||||
|
|
||||||
proc getTagsList(dir: string): seq[string] =
|
proc getTagsList(dir: string): seq[string] =
|
||||||
let output = execProcess("cd \"" & dir & "\" && git tag")
|
let output = execProcess("cd \"" & dir & "\" && git tag")
|
||||||
if output.len > 0:
|
if output.len > 0:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue