https://bugs.kde.org/show_bug.cgi?id=506541

--- Comment #7 from [email protected] ---
$ rpm -q --scripts --triggers code-1.113.0-1774364791.el8.x86_64.rpm
postinstall scriptlet (using /bin/sh):
# Remove the legacy bin command if this is the stable build
if [ "code" = "code" ]; then
        rm -f /usr/local/bin/code
fi

# Register yum repository
# TODO: #229: Enable once the yum repository is signed
#if [ "code" != "code-oss" ]; then
#       if [ -d "/etc/yum.repos.d" ]; then
#               REPO_FILE=/etc/yum.repos.d/code.repo
#               rm -f $REPO_FILE
#               echo -e "[code]\nname=Visual Studio
Code\nbaseurl=https://update.code.visualstudio.com/api/rpm/stable/x86_64/rpm"; >
$REPO_FILE
#       fi
#fi

# Install the desktop entry
update-desktop-database &> /dev/null || :

# Update mimetype database to pickup workspace mimetype
update-mime-database /usr/share/mime &> /dev/null || :
postuninstall scriptlet (using /bin/sh):
# Uninstall the desktop entry
update-desktop-database &> /dev/null || :

# Update mimetype database for removed workspace mimetype
update-mime-database /usr/share/mime &> /dev/null || :

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to