Recursive function to take a list and lock and extract dependencies, sorting along the way using the combine_dependencies function.
package_list(master_list, lock, previously_parsed_deps)
list. Packages to go through and parse dependencies from
list. Original list of locked packages
list. List of packages and their dependencies that we have already parsed out of their respective description files