Fix printing of correct dependency name of dependencies.

--HG--
extra : convert_revision : d4a99cfc35c4409f7c848a89506236fdb88a9946
This commit is contained in:
Juan RP 2009-03-10 14:01:02 +01:00
parent 38c3650623
commit 58a9a990e9
1 changed files with 5 additions and 8 deletions

View File

@ -33,16 +33,13 @@ install_pkg_deps()
{ {
local curpkg="$1" local curpkg="$1"
local saved_prevpkg=$(xbps-pkgdb getpkgname ${2}) local saved_prevpkg=$(xbps-pkgdb getpkgname ${2})
local curpkgname=$(xbps-pkgdb getpkgname ${curpkg}) local curpkgname j jver jname reqver
local j=
local jver=
local jname=
local reqver=
[ -z "$curpkg" ] && return 1 [ -z "$curpkg" ] && return 1
[ -n "$prev_pkg" ] && curpkg=$prev_pkg [ -n "$prev_pkg" ] && curpkg=$prev_pkg
curpkgname=$(xbps-pkgdb getpkgname ${curpkg})
run_template $curpkgname run_template $curpkgname
echo "==> Installing $saved_prevpkg dependency: $curpkg" echo "==> Installing $saved_prevpkg dependency: $curpkg"