Skip to content

Commit

Permalink
depends: don't include the requested app in the list of dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
lukesampson committed Dec 24, 2013
1 parent 08af5e5 commit 1bc6a47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/depends.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
function deps($app, $arch) {
$resolved = new-object collections.arraylist
dep_resolve $app $arch $resolved @()
$resolved

if($resolved.count -eq 1) { return @() } # no dependencies
return $resolved[0..($resolved.count - 2)]
}

function dep_resolve($app, $arch, $resolved, $unresolved) {
Expand Down

0 comments on commit 1bc6a47

Please sign in to comment.