File: appstream.postrm

package info (click to toggle)
appstream 0.16.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 15,140 kB
  • sloc: ansic: 46,770; xml: 10,353; cpp: 3,864; sh: 252; python: 232; makefile: 18
file content (14 lines) | stat: -rwxr-xr-x 288 bytes parent folder | download
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#