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:
parent
d436984145
commit
57ce5bc8e5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue