Skip to content

Commit 1bc6a47

Browse files
committed
depends: don't include the requested app in the list of dependencies
1 parent 08af5e5 commit 1bc6a47

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/depends.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
function deps($app, $arch) {
33
$resolved = new-object collections.arraylist
44
dep_resolve $app $arch $resolved @()
5-
$resolved
5+
6+
if($resolved.count -eq 1) { return @() } # no dependencies
7+
return $resolved[0..($resolved.count - 2)]
68
}
79

810
function dep_resolve($app, $arch, $resolved, $unresolved) {

0 commit comments

Comments
 (0)