Skip to content

Commit

Permalink
bee-install: Fix installation of packages having invalid names
Browse files Browse the repository at this point in the history
Fixes issue #154
  • Loading branch information
mariux committed Aug 30, 2012
1 parent dabbd4c commit 702e14b
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/bee-install.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,16 @@ function do_install() {

assert "x${file}" != "x"

local pkg=$(${BEE_BINDIR}/beeversion --format="%A" ${file})
local fullname=$(${BEE_BINDIR}/beeversion --pkgfullname ${file})
local pkg=$(${BEE_BINDIR}/beeversion --format="%A" ${file} 2>/dev/null)
local fullname=$(${BEE_BINDIR}/beeversion --pkgfullname ${file} 2>/dev/null)
local maxinst=
local maxall=${pkg}

assert "y${pkg}" != "y"
if [ "y${pkg}" = "y" ] ; then
echo >&2 "bee-install: ${file}: Invalid package name. Skipping."
return 1
fi

assert "z${fullname}" != "z"

debug_msg "do_install file=${file}"
Expand Down

0 comments on commit 702e14b

Please sign in to comment.