Permalink
Browse files

Fix script execution

  • Loading branch information...
1 parent 4954dfa commit 32b5ce80460eb86a5cff8d26f80286655ffd333d @bapt bapt committed Jul 3, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 libpkg/scripts.c
View
@@ -63,7 +63,8 @@ pkg_script_run(struct pkg * const pkg, pkg_script type)
assert(map[i].a == type);
for (i = 0; i < PKG_NUM_SCRIPTS; i++) {
-
+ if (pkg_script_get(pkg, i) == NULL)
+ continue;
if (i == map[i].a || i == map[i].b) {
sbuf_reset(script_cmd);
sbuf_printf(script_cmd, "PKG_PREFIX=%s\nset -- %s-%s",

0 comments on commit 32b5ce8

Please sign in to comment.