makepkg: properly localize some internal function variables
We leaked fullver and pkgarch all over the place, and only conditionally unset the other variables. Marking them local is a more proactive solution. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
f76bd2c6c1
commit
c99a3cc867
1 changed files with 1 additions and 1 deletions
|
@ -862,6 +862,7 @@ install_package() {
|
||||||
}
|
}
|
||||||
|
|
||||||
check_build_status() {
|
check_build_status() {
|
||||||
|
local fullver pkgarch allpkgbuilt somepkgbuilt
|
||||||
if (( ! SPLITPKG )); then
|
if (( ! SPLITPKG )); then
|
||||||
fullver=$(get_full_version)
|
fullver=$(get_full_version)
|
||||||
pkgarch=$(get_pkg_arch)
|
pkgarch=$(get_pkg_arch)
|
||||||
|
@ -904,7 +905,6 @@ check_build_status() {
|
||||||
exit $E_ALREADY_BUILT
|
exit $E_ALREADY_BUILT
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
unset allpkgbuilt somepkgbuilt
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue