Marcel Telka
2022-10-05 9311e0acc49efcda9e58112738a0d51827205343
tools/perl-integrate-module: fix plural in obsolete commit message

1 files modified
5 ■■■■■ changed files
tools/perl-integrate-module 5 ●●●●● patch | view | raw | blame | history
tools/perl-integrate-module
@@ -453,6 +453,7 @@
COMPONENT_FMRI=$(gmake print-value-COMPONENT_FMRI)
PERL_VERSIONS_OBSOLETING=$(gmake print-value-PERL_VERSIONS_OBSOLETING)
OV=
OV_PLURAL=
for o in $(echo $OBSOLETE $PERL_VERSIONS_OBSOLETING | LC_ALL=C sort -u) ; do
    PLV=${o//.}
    FMRI=$(pkg list -avH "$COMPONENT_FMRI-$PLV" 2>/dev/null | egrep -v '(o|r)$' | sed -e 's|^.*\('"$COMPONENT_FMRI"'\)|\1|g' -e 's/:[^:]*$//g' -e 's/\(-[^-]*\)$/,5.11\1/g')
@@ -466,7 +467,7 @@
    FMRI_T=$((FMRI_T + 1))
    printf "%s.%s noincorporate\n" "$FMRI_H" "$FMRI_T" >> history
    [[ -n "$OV" ]] && OV="$OV and "
    [[ -n "$OV" ]] && OV="$OV and " && OV_PLURAL="s"
    OV="$OV$o"
done
if [[ -f history ]] ; then
@@ -497,7 +498,7 @@
    [[ -n "$NV" ]] && REBUILDMSG="rebuild for perl $NV"
    if [[ -n "$OV" ]] ; then
        [[ -n "$REBUILDMSG" ]] && REBUILDMSG="$REBUILDMSG and" || REBUILDMSG="rebuild"
        REBUILDMSG="$REBUILDMSG to get packages for perl $OV obsoleted"
        REBUILDMSG="$REBUILDMSG to get package$OV_PLURAL for perl $OV obsoleted"
    fi
    if [[ -n "$REBUILDMSG" ]] ; then