msk: handle failures in 'fetch' when retrieving packages
This commit is contained in:
parent
0f5e5158a9
commit
4b54f497d9
@ -301,7 +301,10 @@ static int install_package(char * pkg) {
|
|||||||
char cmd[1024];
|
char cmd[1024];
|
||||||
sprintf(cmd, "fetch -o /tmp/msk.file -v %s/%s", msk_remote,
|
sprintf(cmd, "fetch -o /tmp/msk.file -v %s/%s", msk_remote,
|
||||||
source);
|
source);
|
||||||
system(cmd);
|
int status;
|
||||||
|
if ((status = system(cmd))) {
|
||||||
|
return status;
|
||||||
|
}
|
||||||
hashmap_set(hashmap_get(msk_manifest->sections, pkg), "source", "/tmp/msk.file");
|
hashmap_set(hashmap_get(msk_manifest->sections, pkg), "source", "/tmp/msk.file");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user