<commit_before>#!/bin/sh

[ "$1" != "--run" ] && echo "Install glusterfs9 (or upgrade from glusterfs8)" && exit

[ "$($DISTRVENDOR -d)" != "ALTLinux" ] && echo "Only ALTLinux is supported" && exit 1

GFSOLD=glusterfs8
GFSNEW=glusterfs9

if epmqp --quiet ${GFSOLD}- ; then
    # Upgrade if was installed
    epmi $(epmqp --short $GFSOLD | grep -v rdma | sed -e "s|$GFSOLD|$GFSNEW|") ${GFSOLD}- ${GFSOLD}-client- python3-module-${GFSOLD}-
    epm installed $GFSNEW-server && serv glusterd on
else
    # Install all packages
    epmi ${GFSNEW}-cli ${GFSNEW}-client ${GFSNEW}

    echo "You can install also '${GFSNEW}-server' if it is needed for this host"

    epme $(epmqp ${GFSOLD})
fi
<commit_msg>glusterfs9: skip devel packages during upgrade<commit_after>#!/bin/sh

[ "$1" != "--run" ] && echo "Install glusterfs9 (or upgrade from glusterfs8)" && exit

[ "$($DISTRVENDOR -d)" != "ALTLinux" ] && echo "Only ALTLinux is supported" && exit 1

GFSOLD=glusterfs8
GFSNEW=glusterfs9

if epmqp --quiet ${GFSOLD}- ; then
    # Upgrade if was installed
    epmi $(epmqp --short $GFSOLD | grep -v rdma | grep -v devel | sed -e "s|$GFSOLD|$GFSNEW|") ${GFSOLD}- ${GFSOLD}-client- python3-module-${GFSOLD}-
    epm installed $GFSNEW-server && serv glusterd on
else
    # Install all packages
    epmi ${GFSNEW}-cli ${GFSNEW}-client ${GFSNEW}

    echo "You can install also '${GFSNEW}-server' if it is needed for this host"

    epme $(epmqp ${GFSOLD})
fi

{'fraction_non_alphanumeric': 0.16401384083044981, 'fraction_numerical': 0.010380622837370242, 'mean_word_length': 3.7100977198697067, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4412777', 'n_tokens_mistral': 562, 'n_tokens_neox': 538, 'n_words': 160}