msk: use native inflater for tgz packages (slow, but nicer)

This commit is contained in:
K. Lange 2020-05-08 11:24:33 +09:00
parent 286bd07812
commit 69324a4e3d

View File

@ -361,10 +361,9 @@ static int install_package(char * pkg) {
}
char cmd[1024];
sprintf(cmd, "cd %s; ungz %s /tmp/%s.tar; tar -xf /tmp/%s.tar; rm /tmp/%s.tar",
sprintf(cmd, "cd %s; tar -xzf %s",
confreader_get(msk_manifest, pkg, "destination"),
confreader_get(msk_manifest, pkg, "source"),
pkg, pkg, pkg);
confreader_get(msk_manifest, pkg, "source"));
int status;
if ((status = system(cmd))) {