Skip to content

Commit

Permalink
add meta information which package caused dependency to be selected
Browse files Browse the repository at this point in the history
  • Loading branch information
mnicky committed Jul 2, 2013
1 parent de5c6ec commit 4a2c128
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dist/depends.lua
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,9 @@ local function get_packages_to_install(pkg, installed, manifest, force_no_downlo
-- if any suitable dependency packages were found, insert them to the 'to_install' table
if depends_to_install then
for _, depend_to_install in pairs(depends_to_install) do
if not depend_to_install.selected_by then
depend_to_install.selected_by = pkg.name .. "-" .. pkg.version
end
table.insert(to_install, depend_to_install)
table.insert(tmp_installed, depend_to_install)
table.insert(installed, depend_to_install)
Expand Down

0 comments on commit 4a2c128

Please sign in to comment.