|
6 | 6 | # https://github.com/Softmotions/autark |
7 | 7 |
|
8 | 8 | META_VERSION=0.9.0 |
9 | | -META_REVISION=abe2739 |
| 9 | +META_REVISION=74c76ad |
10 | 10 | cd "$(cd "$(dirname "$0")"; pwd -P)" |
11 | 11 |
|
12 | 12 | prev_arg="" |
@@ -62,7 +62,7 @@ cat <<'a292effa503b' > ${AUTARK_HOME}/autark.c |
62 | 62 | #ifndef CONFIG_H |
63 | 63 | #define CONFIG_H |
64 | 64 | #define META_VERSION "0.9.0" |
65 | | -#define META_REVISION "abe2739" |
| 65 | +#define META_REVISION "74c76ad" |
66 | 66 | #endif |
67 | 67 | #define _AMALGAMATE_ |
68 | 68 | #define _XOPEN_SOURCE 700 |
@@ -3299,8 +3299,11 @@ static struct unit* _unit_for_set(struct node *n, struct node *nn, const char ** |
3299 | 3299 | return unit_peek(); |
3300 | 3300 | } |
3301 | 3301 | static void _set_init(struct node *n); |
| 3302 | +static bool _set_is_force(struct node *n) { |
| 3303 | + return strcmp(n->value, "set-force") == 0; |
| 3304 | +} |
3302 | 3305 | static void _set_setup(struct node *n) { |
3303 | | - if (!n->init) { |
| 3306 | + if (_set_is_force(n)) { |
3304 | 3307 | _set_init(n); |
3305 | 3308 | } |
3306 | 3309 | if (n->child && strcmp(n->value, "env") == 0) { |
@@ -3330,9 +3333,6 @@ static void _set_init(struct node *n) { |
3330 | 3333 | } |
3331 | 3334 | unit_env_set_node(unit, key, n); |
3332 | 3335 | } |
3333 | | -static bool _set_is_force(struct node *n) { |
3334 | | - return strcmp(n->value, "set-force") == 0; |
3335 | | -} |
3336 | 3336 | static const char* _set_value_get(struct node *n) { |
3337 | 3337 | if (n->recur_next.active && n->recur_next.n) { |
3338 | 3338 | return _set_value_get(n->recur_next.n); |
|
0 commit comments