cleanup
This commit is contained in:
parent
cec74dbdcc
commit
07e9ac0972
1 changed files with 84 additions and 82 deletions
|
|
@ -369,7 +369,10 @@ proc installFromDir(dir: string, latest: bool, options: Options,
|
||||||
# Dependencies need to be processed before the creation of the pkg dir.
|
# Dependencies need to be processed before the creation of the pkg dir.
|
||||||
result.paths = processDeps(pkginfo, deps_options)
|
result.paths = processDeps(pkginfo, deps_options)
|
||||||
|
|
||||||
if not options.depsOnly:
|
if options.depsOnly:
|
||||||
|
result.pkg = pkgInfo
|
||||||
|
return result
|
||||||
|
|
||||||
echo("Installing ", pkginfo.name, "-", pkginfo.version)
|
echo("Installing ", pkginfo.name, "-", pkginfo.version)
|
||||||
|
|
||||||
# Build before removing an existing package (if one exists). This way
|
# Build before removing an existing package (if one exists). This way
|
||||||
|
|
@ -457,12 +460,11 @@ proc installFromDir(dir: string, latest: bool, options: Options,
|
||||||
# processDeps).
|
# processDeps).
|
||||||
saveNimbleData(options)
|
saveNimbleData(options)
|
||||||
|
|
||||||
echo(pkgInfo.name & " installed successfully.")
|
|
||||||
# Return the paths to the dependencies of this package.
|
# Return the paths to the dependencies of this package.
|
||||||
result.paths.add pkgDestDir
|
result.paths.add pkgDestDir
|
||||||
|
|
||||||
result.pkg = pkgInfo
|
result.pkg = pkgInfo
|
||||||
|
|
||||||
|
echo(pkgInfo.name & " installed successfully.")
|
||||||
|
|
||||||
proc getNimbleTempDir(): string =
|
proc getNimbleTempDir(): string =
|
||||||
## Returns a path to a temporary directory.
|
## Returns a path to a temporary directory.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue