Skip to content

Commit 8fd1672

Browse files
authored
Merge pull request #1652 from sogaiu/fix-bundle-install-breakage
2 parents f393531 + 9b99fc4 commit 8fd1672

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/boot/boot.janet

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4373,16 +4373,20 @@
43734373
(put man :dependencies deps)
43744374
(put man :info info))
43754375
(def module (get-bundle-module bundle-name))
4376+
(def clean (get config :clean))
4377+
(def check (get config :check))
43764378
(def all-hooks (seq [[k v] :pairs module :when (symbol? k) :unless (get v :private)] (keyword k)))
43774379
(put man :hooks all-hooks)
43784380
(do-hook module bundle-name :dependencies man) # deprecated, use :postdeps
43794381
(do-hook module bundle-name :postdeps man)
4380-
(do-hook module bundle-name :clean man)
4382+
(when clean
4383+
(do-hook module bundle-name :clean man))
43814384
(do-hook module bundle-name :build man)
43824385
(do-hook module bundle-name :install man)
43834386
(if (empty? (get man :files)) (print "no files installed, is this a valid bundle?"))
43844387
(sync-manifest man)
4385-
(do-hook module bundle-name :check man))
4388+
(when check
4389+
(do-hook module bundle-name :check man)))
43864390
(print "installed " bundle-name)
43874391
(when (get man :has-bin-script)
43884392
(def binpath (string (dyn *syspath*) s "bin"))

0 commit comments

Comments
 (0)