commit | 20b516a408adebcad06e03f12516e70b8998c38f | [log] [tgz] |
---|---|---|
author | Koushik Dutta <koushd@gmail.com> | Sun May 15 18:48:17 2011 -0700 |
committer | Koushik Dutta <koushd@gmail.com> | Sun May 15 18:48:17 2011 -0700 |
tree | 6bfe461c3290829a3d10ded2b4473c7362ed1891 | |
parent | 4d5109cfa8a7c6c6bbeca17d353b66b6763caff6 [diff] [blame] |
set the env for UPDATE_PACKAGE (the source zip) for update-binary. This allows shell scripts to use the source zip. Change-Id: Ia8118b31408f687780dd45e14f540a7e76619cba
diff --git a/install.c b/install.c index ad2c21d..1ed0465 100644 --- a/install.c +++ b/install.c
@@ -181,6 +181,7 @@ 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));