From 7ab81d52eb926488051fadc8acdf73f2d21bd46e Mon Sep 17 00:00:00 2001 From: Billingsly Wetherfordshire Date: Tue, 4 Jun 2013 22:24:14 -0600 Subject: [PATCH] Update babel.nim remove old, unversioned package dir --- babel.nim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/babel.nim b/babel.nim index feaac4c..4dc7189 100644 --- a/babel.nim +++ b/babel.nim @@ -212,6 +212,11 @@ proc installFromDir(dir: string, latest: bool): string = echo(pkgInfo.name & " installed successfully.") result = pkgDestDir + + ## remove old unversioned directory + if not latest: + removeDir libsDir / pkgInfo.name + proc getTagsList(dir: string): seq[string] = let output = execProcess("cd \"" & dir & "\" && git tag") if output.len > 0: