Sophie

Sophie

distrib > Fedora > 14 > i386 > media > updates > by-pkgid > 246f09b21476529876a7eb188b7b7fd3 > scriptlet

mock-1.1.18-1.fc14.noarch.rpm

PREIN

/bin/sh
if [ $1 -eq 1 ]; then
    groupadd -r mock >/dev/null 2>&1 || :
fi

POSTIN

/bin/sh
# TODO: use dist and version of install system, not build one
if [ ! -e /etc/mock/default.cfg ] ; then
    arch=$(uname -i)
    for ver in 14 rawhide ; do
        cfg=fedora-$ver-$arch.cfg
        if [ -e /etc/mock/$cfg ] ; then
            ln -s -f $cfg /etc/mock/default.cfg
            exit 0
        fi
    done
fi
# fix cache permissions from old installs
chmod 2775 /var/cache/mock
: