From 20b516a408adebcad06e03f12516e70b8998c38f Mon Sep 17 00:00:00 2001 From: Koushik Dutta Date: Sun, 15 May 2011 18:48:17 -0700 Subject: [PATCH] set the env for UPDATE_PACKAGE (the source zip) for update-binary. This allows shell scripts to use the source zip. Change-Id: Ia8118b31408f687780dd45e14f540a7e76619cba --- install.c | 1 + 1 file changed, 1 insertion(+) diff --git a/install.c b/install.c index ad2c21d..1ed0465 100644 --- a/install.c +++ b/install.c @@ -181,6 +181,7 @@ try_update_binary(const char *path, ZipArchive *zip) { pid_t pid = fork(); if (pid == 0) { + setenv("UPDATE_PACKAGE", path, 1); close(pipefd[0]); execv(binary, args); fprintf(stdout, "E:Can't run %s (%s)\n", binary, strerror(errno));