We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a6ab97 commit a85ceb7Copy full SHA for a85ceb7
1 file changed
configure
@@ -110,11 +110,18 @@ if [ $rval -ne 0 ]; then
110
echo "ERROR: xbps-checkvers exited with an error: $rval"
111
exit 1
112
fi
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
+
+xbps-uhelper pkgmatch "xbps-$($RCV -V | cut -d' ' -f2)_1" 'xbps>=0.54_1'
+case "$?" in
+0) # version < 0.54
+ grep pkgname "$RCV_F" | awk '{ print $2 }' >pkgs.txt ;;
118
+1) # version >= 0.54
119
+ cut -d' ' -f1 "$RCV_F" >pkgs.txt ;;
120
+*)
121
+ echo "ERROR: couldn't determine xbps-checkvers version"
122
+ exit 1
123
+ ;;
124
+esac
125
126
printf "INFO: Creating source targets...\n"
127
rm -rf tobuild built
0 commit comments