diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-21 21:25:48 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-21 21:25:48 +0200 |
commit | 318a4c27d4f35ee9615dfd256001e545af8f351e (patch) | |
tree | abc512124ef9365a73524635ee592492fa6db4a5 /bin/pkg | |
parent | 8b1bab7eb6e20cd85a723b7168a8214352f360d9 (diff) |
bin/pkg: check_deps: Removed unneccessary stuff
Diffstat (limited to 'bin/pkg')
-rwxr-xr-x | bin/pkg | 10 |
1 files changed, 2 insertions, 8 deletions
@@ -152,20 +152,14 @@ check_deps () { DEPS=($(cat $PDIR/$1/dependencies)) INSTALL=() for dep in $DEPS; { - if ([ "$dep" = "$1" ]) { - warn "This package depends on itself. Therefore, I'm considering it borked. Not installing.\n" - return 100 - } if ([ ! -d $PDIR/$dep ]) { if (confirm_yes "$1 depends on $dep. Install dependency?") { INSTALL+="$dep" } } } - if ([ -n "$INSTALL" ]) { - for pkg in $INSTALL; { - pkg_add "$pkg" - } + for pkg in $INSTALL; { + pkg_add "$pkg" } } |