aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2015-12-30 14:49:49 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2015-12-30 14:49:49 +0100
commit07c512dad1762f3791cc796a3014b43a0211345b (patch)
tree7067e4fcff6d2d9cc57c4078f861311ca7145542
parent1aa681565f1c04782554df9c09a33a1988498f3e (diff)
zip: fix bug
Change-Id: I69002d48416c2e58fc3ac4f9291368023e084bec
-rw-r--r--TODO1
-rw-r--r--src/wgtpkg-zip.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/TODO b/TODO
index 6e89fef..75cdee0 100644
--- a/TODO
+++ b/TODO
@@ -4,3 +4,4 @@ List of things to do
- more documentation
- notifications
- manage upgrade packages
+- use key facilities of kernel
diff --git a/src/wgtpkg-zip.c b/src/wgtpkg-zip.c
index 4b87a41..a810e50 100644
--- a/src/wgtpkg-zip.c
+++ b/src/wgtpkg-zip.c
@@ -415,8 +415,8 @@ int zwrite(const char *zipfile)
args[0] = "zip";
args[1] = "-q";
args[2] = "-r";
- args[3] = workdir;
- args[4] = zipfile;
+ args[3] = zipfile;
+ args[4] = workdir;
args[5] = NULL;
return zrun(PATH_TO_ZIP, args);