hooks/pkglint-devel-paths: do move static find calls out of the loop
Right now they got executed every iteration, but weren't dependent on the loop. Which resulted in getting the output x times more often than neccessary
This commit is contained in:
@@ -52,6 +52,7 @@ hook() {
|
||||
msg_warn "usr/lib/qt5/mkspecs should be in -devel package\n"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
if [ -n "$(find $PKGDESTDIR/usr/lib -maxdepth 1 -type l -iname '*.so' 2>/dev/null)" ]; then
|
||||
solink=1
|
||||
@@ -73,8 +74,6 @@ hook() {
|
||||
done
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
if [ -n "$solink" ]; then
|
||||
msg_warn "usr/lib/*.so should be in -devel package\n"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user