sheepy

build system (sheepy) and package manager (spm) for C
git clone https://spartatek.se/git/sheepy.git
Log | Files | Refs | README | LICENSE

commit 3d36f9c2abe884a4fe8f560f10e4a71c193da336
parent 131039249f8eabbf1afc22576d6746bda9cc7bb8
Author: Remy Noulin <loader2x@gmail.com>
Date:   Thu, 16 Sep 2021 21:14:27 +0200

remove error when installing package from package.yml in current directory

src/spm.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

Diffstat:
Msrc/spm.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/spm.c b/src/spm.c @@ -1302,7 +1302,10 @@ bool installDependencies(bool isGlobal, smallDictt *cfgD, smallDictt *d, const c } else { // install dependencies inside current package - pError0(chDir(name)); + // when name is NULL, the spm is run in current package, there is no need to change dir + if (name) { + pError0(chDir(name)); + } // create PACKAGE_DIR shpPackages to install locally pError0(mkdirParents(PACKAGE_DIR)); global = "";