sqg: Fix 'find' command to work with symlinked REPO_DIR

Merged #92

Signed-off-by: Willy Sudiarto Raharjo <willysr@sbopkg.org>
This commit is contained in:
Logan Rathbone 2024-07-01 18:22:05 -04:00 committed by Willy Sudiarto Raharjo
parent ef0238efaf
commit def77d0e95
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
3 changed files with 6 additions and 3 deletions

View File

@ -104,3 +104,4 @@ We moved to github, so revision number no longer used
Benjamin Trigona-Harany Benjamin Trigona-Harany
ArTourter ArTourter
Urchlay Urchlay
Logan Rathbone

View File

@ -226,10 +226,10 @@ execute_build () {
if [ "$ALL" == "yes" ]; then if [ "$ALL" == "yes" ]; then
rm -f $QUEUEDIR/*.sqf rm -f $QUEUEDIR/*.sqf
printf "Processing all SlackBuilds in the $REPO_SUBPATH repository..." printf "Processing all SlackBuilds in the $REPO_SUBPATH repository..."
PKGSNEW=($(find "$REPO_DIR" -name "*.info" -print0 | xargs -r0)) PKGSNEW=($(find "$REPO_DIR/" -name "*.info" -print0 | xargs -r0))
else else
for PKG in ${PKGS[@]}; do for PKG in ${PKGS[@]}; do
INFOPATH=$(find "$REPO_DIR" -name ${PKG}.info) INFOPATH=$(find "$REPO_DIR/" -name ${PKG}.info)
if [ -z "$INFOPATH" ]; then if [ -z "$INFOPATH" ]; then
echo "$PKG: Not found." echo "$PKG: Not found."

View File

@ -1,6 +1,6 @@
SBOPKG NEWS SBOPKG NEWS
sbopkg-devel (2024-05-21 00:31 UTC) sbopkg-devel (2024-07-02 16:45 UTC)
MODIFICATIONS MODIFICATIONS
* Update renames * Update renames
* sqg: Fix repo detection when people switch from stable to master or vice versa * sqg: Fix repo detection when people switch from stable to master or vice versa
@ -9,6 +9,8 @@ sbopkg-devel (2024-05-21 00:31 UTC)
Reported by Jeremy Hansen Reported by Jeremy Hansen
* sbopkg: Support download from sbosrcarch * sbopkg: Support download from sbosrcarch
Patch by Urchlay Patch by Urchlay
* sqg: Fix 'find' command to work with symlinked REPO_DIR
Patch by Logan Rathbone (#92)
sbopkg 0.38.2 (2022-03-10 16:29 UTC) sbopkg 0.38.2 (2022-03-10 16:29 UTC)
FEATURES FEATURES