aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2019-08-16 14:28:01 -0400
committerJason Woodward2019-08-16 14:28:01 -0400
commit3a8406e9110d00b79eba6030deb382859db26fe2 (patch)
tree73a3ddba4591b725f15b13a0f1c2375c4f8ac331
parent525b39ec47a5b52a4cb8c2228ed0b56cbddaf2f1 (diff)
downloadslapt-src-3a8406e9110d00b79eba6030deb382859db26fe2.tar.gz
set the VERSION environment variable in case the slackbuild is out of date
-rw-r--r--src/source.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/source.c b/src/source.c
index 94e5146..bbc608d 100644
--- a/src/source.c
+++ b/src/source.c
@@ -728,7 +728,9 @@ bool slapt_src_build_slackbuild(slapt_src_config *config, slapt_src_slackbuild *
exit(EXIT_FAILURE);
}
+ setenv("VERSION", sb->version, 1);
r = system(command);
+ unsetenv("VERSION");
if (r != 0) {
printf("%s %s\n", command, gettext("Failed\n"));
exit(EXIT_FAILURE);