# Calculate ini(overlay-calculate.revision)<38 exec=/bin/bash

#-ini(overlay-calculate.revision,38)-#

# key is pkg name, value is current version new reduced version split by space
declare -A map_move=( ["sys-boot/os-prober"]="1.62 1.62_rc73" )

PKGDB=/var/db/pkg
for pkg in ${!map_move[@]}
do
    vers=(${map_move[$pkg]})
    [[ -d $PKGDB/${pkg}-${vers[0]} ]] && mv $PKGDB/${pkg}-${vers[0]} $PKGDB/${pkg}-${vers[1]}
done

true
