summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-05-24 19:37:57 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-05-24 19:37:57 +0200
commit94a80ec3e505dcbf5ab5ac2784c330f18d09f4a1 (patch)
tree663c3796fddbdd559b0cd34a4bd06dd08dd7877e /bin
parent39a2a22d03cf87905233802b3c8c1e6586320675 (diff)
oopsie
Diffstat (limited to 'bin')
-rwxr-xr-xbin/pkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pkg b/bin/pkg
index 99476a1..c8ca13d 100755
--- a/bin/pkg
+++ b/bin/pkg
@@ -28,7 +28,7 @@ fi
check_deps () {
[ -r $PDIR/$1/.deps ] || return 0
DEPS=($(cat $PDIR/$1/.deps))
- INSTALL=''
+ INSTALL=()
for dep in $DEPS; {
if [ "$dep" = "$1" ]; then
error "This package depends on itself. Therefore, I'm considering it borked. Not installing."
@@ -53,7 +53,6 @@ pkg_add () {
info "Package '$1' is already installed!"
return 100
fi
- check_deps "$1"
cd $PDIR || return 255
info 'Retrieving package...'
$VCS_CMD $VCS_OPTIONS $VCS_ADD $PKG_ROOT/$1 || return 255
@@ -61,6 +60,7 @@ pkg_add () {
info 'Executing post-add hook'
. $PDIR/$1/hooks/post-add
fi
+ check_deps "$1"
info 'Checking symlinks...'
cd $PDIR/$1
checklinks $CL_OPTIONS