bug fix: dependencies not being downloaded

Logic error: we were looping through the parent package everytime
instead of it's dependencies, consequently no dependencies were being
downloaded.