xbps-src: verify_rundeps: make sure to unset local vars.

This commit is contained in:
Juan RP 2011-11-15 11:04:31 +01:00
parent 5cb537c96b
commit 871e7aad4a
2 changed files with 2 additions and 3 deletions

View File

@ -100,6 +100,7 @@ verify_rundeps()
# above, the mapping is done thru the mapping_shlib_binpkg.txt file. # above, the mapping is done thru the mapping_shlib_binpkg.txt file.
# #
for f in ${verify_deps}; do for f in ${verify_deps}; do
unset j rdep _rdep rdepcnt
# Bail out if maplib is not aware for this lib # Bail out if maplib is not aware for this lib
rdep="$(grep "$f" $maplib|awk '{print $2}')" rdep="$(grep "$f" $maplib|awk '{print $2}')"
rdepcnt="$(grep "$f" $maplib|awk '{print $2}'|wc -l)" rdepcnt="$(grep "$f" $maplib|awk '{print $2}'|wc -l)"
@ -112,7 +113,6 @@ verify_rundeps()
done done
if [ -n "$found" ]; then if [ -n "$found" ]; then
echo " SONAME: $f <-> $pkgname (ignored)" echo " SONAME: $f <-> $pkgname (ignored)"
unset found
continue continue
else else
echo " SONAME: $f <-> UNKNOWN PKG PLEASE FIX!" echo " SONAME: $f <-> UNKNOWN PKG PLEASE FIX!"
@ -144,7 +144,6 @@ verify_rundeps()
if find_rundep ${_rdep}; then if find_rundep ${_rdep}; then
Add_dependency run ${_rdep} Add_dependency run ${_rdep}
fi fi
unset rdep _rdep rdepcnt
done done
# #
# If pkg uses any SONAME not known, error out. # If pkg uses any SONAME not known, error out.

View File

@ -23,7 +23,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#- #-
readonly XBPS_SRC_BUILD_VERSION=20111115 readonly XBPS_SRC_BUILD_VERSION=20111115-1
XBPS_CONFIG_FILE=@@XBPS_INSTALL_ETCDIR@@/xbps-src.conf XBPS_CONFIG_FILE=@@XBPS_INSTALL_ETCDIR@@/xbps-src.conf
PROGNAME=$(basename $0) PROGNAME=$(basename $0)