Permalink
Browse files

Fix dev-build? function

For some reason :dev profile doesn't show up anymore in the
:included-profiles list, so now `dev-build?` checks if :release
is activated.
  • Loading branch information...
1 parent dd82e7a commit fbe8fe91c388d4493161c41034d35b30a1a663f9 @alexander-yakushev alexander-yakushev committed Oct 2, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/leiningen/droid.clj
  2. +1 −1 src/leiningen/droid/utils.clj
View
2 src/leiningen/droid.clj
@@ -109,4 +109,4 @@
;; Help tasks
"foo" (foo project)
- "help" (help #'droid)))
+ "help" (help #'droid)))
View
2 src/leiningen/droid/utils.clj
@@ -170,7 +170,7 @@
(defn dev-build?
"Checks if the current Leiningen run contains :dev profile."
[project]
- (contains? (-> project meta :included-profiles set) :dev))
+ (not (contains? (-> project meta :included-profiles set) :release)))
(defmacro ensure-paths
"Checks if the given directories or files exist. Aborts Leiningen

0 comments on commit fbe8fe9

Please sign in to comment.