From 69324a4e3dc82676c7ef02ae3bb9184861968743 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Fri, 8 May 2020 11:24:33 +0900 Subject: [PATCH] msk: use native inflater for tgz packages (slow, but nicer) --- apps/msk.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/msk.c b/apps/msk.c index dcde7b32..b4369c86 100644 --- a/apps/msk.c +++ b/apps/msk.c @@ -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))) {