mirror of
https://github.com/kennethreitz/bob-builder-1.git
synced 2026-06-05 23:10:17 +00:00
Merge pull request #46 from heroku-python/allow-no-override
update so override_path checks for None
This commit is contained in:
+1
-1
@@ -22,7 +22,7 @@ from .models import Formula
|
||||
from .utils import print_stderr
|
||||
|
||||
|
||||
def build(formula, name):
|
||||
def build(formula, name=None):
|
||||
f = Formula(path=formula, override_path=name)
|
||||
|
||||
try:
|
||||
|
||||
+1
-1
@@ -137,7 +137,7 @@ class Formula(object):
|
||||
|
||||
# Execute the formula script.
|
||||
args = ["/usr/bin/env", "bash", "--", self.full_path, self.build_path]
|
||||
if self.override_path:
|
||||
if self.override_path != None:
|
||||
args.append(self.override_path)
|
||||
|
||||
p = process(args, cwd=cwd_path)
|
||||
|
||||
Reference in New Issue
Block a user