lint-version: fix check-reverts
This commit is contained in:
parent
57f3cde5c7
commit
7662f1c433
|
@ -46,7 +46,7 @@ show_template_var() {
|
|||
(
|
||||
show_template "$rev"
|
||||
printf '%s\n' "printf '%s\\n' \"\$${var}\""
|
||||
) | bash
|
||||
) | bash 2>/dev/null
|
||||
}
|
||||
|
||||
revision_reset() {
|
||||
|
@ -75,14 +75,10 @@ reverts_on_downgrade() {
|
|||
|
||||
check_revert() {
|
||||
for vr in $reverts; do
|
||||
xbps-uhelper cmpver "${vr%_*}" "${version}"
|
||||
xbps-uhelper cmpver "${version}" "${vr%_*}"
|
||||
case "$?" in
|
||||
0)
|
||||
scan '^version=' 'in $reverts'
|
||||
status=1
|
||||
;;
|
||||
1)
|
||||
scan '^version=' 'remove from $reverts'
|
||||
0 | 1)
|
||||
scan '^version=' "remove $vr from \$reverts"
|
||||
status=1
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in New Issue