Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dist/depends.lua
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ local function get_packages_to_install(pkg, installed, manifest, dependency_mani
end
end

if was_scm_version then pkg.was_scm_version = true end
if pkg and was_scm_version then pkg.was_scm_version = true end

-- check arch & type
if not err then
Expand Down
4 changes: 3 additions & 1 deletion luadist.lua
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,9 @@ function apply_settings(variable, value)
end

-- Parse command line input and run the required command.
if not commands[arg[1]] and commands[arg[2]] then
if pcall(debug.getlocal, 4, 1) then
return commands -- return commands when used as module
elseif not commands[arg[1]] and commands[arg[2]] then
-- deploy_dir specified
return run_command(arg[1], arg[2], 3)
elseif commands[arg[1]] then
Expand Down