consistency_check.sh: use return instead of continue when appropiate.

Those are not meant to be continue as they are not in a loop they are in
a subshell.
This commit is contained in:
maxice8 2019-01-18 15:08:51 -02:00 committed by maxice8
parent d436984145
commit 57ce5bc8e5

View file

@ -56,7 +56,7 @@ consistency_check_smart () {
( (
XBPS_TARGET_PKG=$dep XBPS_TARGET_PKG=$dep
read_pkg read_pkg
xbps-uhelper pkgmatch "$depdef" "${pkgname}-${version}_${revision}" && continue xbps-uhelper pkgmatch "$depdef" "${pkgname}-${version}_${revision}" && return
msg_red "unsatisfied $deplabel in $origname: $dep is $version, but required is $depdef\n"; msg_red "unsatisfied $deplabel in $origname: $dep is $version, but required is $depdef\n";
) )
done done
@ -70,7 +70,7 @@ consistency_check() {
read_pkg read_pkg
[ "$depends" ] && printf "%s $pkgname depends\n" $depends [ "$depends" ] && printf "%s $pkgname depends\n" $depends
[ "$conflicts" ] && printf "%s $pkgname conflicts\n" $conflicts [ "$conflicts" ] && printf "%s $pkgname conflicts\n" $conflicts
[ -L "$XBPS_SRCPKGDIR/$XBPS_TARGET_PKG" ] && continue [ -L "$XBPS_SRCPKGDIR/$XBPS_TARGET_PKG" ] && return
[ "$makedepends" ] && printf "%s $pkgname makedepends\n" $makedepends [ "$makedepends" ] && printf "%s $pkgname makedepends\n" $makedepends
[ "$hostmakedepends" ] && printf "%s $pkgname hostmakedepends\n" $hostmakedepends [ "$hostmakedepends" ] && printf "%s $pkgname hostmakedepends\n" $hostmakedepends
[ "$checkdepends" ] && printf "%s $pkgname checkdepends\n" $checkdepends [ "$checkdepends" ] && printf "%s $pkgname checkdepends\n" $checkdepends