aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/cmd/make.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/luarocks/cmd/make.lua b/src/luarocks/cmd/make.lua
index e04bba96..ef99218a 100644
--- a/src/luarocks/cmd/make.lua
+++ b/src/luarocks/cmd/make.lua
@@ -71,19 +71,19 @@ end
71-- @return boolean or (nil, string, exitcode): True if build was successful; nil and an 71-- @return boolean or (nil, string, exitcode): True if build was successful; nil and an
72-- error message otherwise. exitcode is optionally returned. 72-- error message otherwise. exitcode is optionally returned.
73function make.command(args) 73function make.command(args)
74 local rockspec = args.rockspec 74 local rockspec_filename = args.rockspec
75 if not rockspec then 75 if not rockspec_filename then
76 local err 76 local err
77 rockspec, err = util.get_default_rockspec() 77 rockspec_filename, err = util.get_default_rockspec()
78 if not rockspec then 78 if not rockspec_filename then
79 return nil, err 79 return nil, err
80 end 80 end
81 end 81 end
82 if not rockspec:match("rockspec$") then 82 if not rockspec_filename:match("rockspec$") then
83 return nil, "Invalid argument: 'make' takes a rockspec as a parameter. "..util.see_help("make") 83 return nil, "Invalid argument: 'make' takes a rockspec as a parameter. "..util.see_help("make")
84 end 84 end
85 85
86 local rockspec, err, errcode = fetch.load_rockspec(rockspec) 86 local rockspec, err, errcode = fetch.load_rockspec(rockspec_filename)
87 if not rockspec then 87 if not rockspec then
88 return nil, err 88 return nil, err
89 end 89 end