File: appstream.postrm

package info (click to toggle)
appstream 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,448 kB
  • sloc: ansic: 51,878; xml: 10,459; cpp: 4,721; python: 538; sh: 264; makefile: 24
file content (14 lines) | stat: -rwxr-xr-x 289 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
# postrm script for appstream
set -e

if [ "$1" = "purge" ]; then
    # remove the AppStream global cache
    rm -rf /var/cache/swcatalog/cache
    rmdir /var/cache/swcatalog/ || true

    # remove the AppStream data fetched via APT
    rm -rf /var/lib/swcatalog
fi

#DEBHELPER#