Skip to content

Commit 5a6ab97

Browse files
committed
xbps 0.54 compatibility
1 parent ceeb2ae commit 5a6ab97

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

configure

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,11 @@ if [ $rval -ne 0 ]; then
110110
echo "ERROR: xbps-checkvers exited with an error: $rval"
111111
exit 1
112112
fi
113-
grep pkgname $RCV_F | awk '{ print $2 }' > pkgs.txt
113+
if "$RCV" -V | grep "XBPS: 0.54" 1>/dev/null 2>&1; then
114+
cut -d' ' -f1 "$RCV_F" >pkgs.txt
115+
else
116+
grep pkgname "$RCV_F" | awk '{ print $2 }' >pkgs.txt
117+
fi
114118

115119
printf "INFO: Creating source targets...\n"
116120
rm -rf tobuild built

0 commit comments

Comments
 (0)