summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-06-21 21:25:48 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-06-21 21:25:48 +0200
commit318a4c27d4f35ee9615dfd256001e545af8f351e (patch)
treeabc512124ef9365a73524635ee592492fa6db4a5 /bin/pkg
parent8b1bab7eb6e20cd85a723b7168a8214352f360d9 (diff)
bin/pkg: check_deps: Removed unneccessary stuff
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg10
1 files changed, 2 insertions, 8 deletions
diff --git a/bin/pkg b/bin/pkg
index 67153bd..f89afdb 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -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"
}
}