This commit is contained in:
tormund 2016-05-23 14:52:50 +03:00
commit 07e9ac0972

View file

@ -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.