post_install() { /usr/share/code-marketplace/patch.py code-marketplace patch } pre_upgrade() { /usr/share/code-marketplace/patch.py code-marketplace restore } post_upgrade() { /usr/share/code-marketplace/patch.py code-marketplace patch } pre_remove() { /usr/share/code-marketplace/patch.py code-marketplace restore /usr/bin/rm -f /usr/share/code-marketplace/cache.json }