File: python3-linux-procfs.postinst

package info (click to toggle)
python-linux-procfs 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 196 kB
  • sloc: python: 793; makefile: 45; sh: 30
file content (16 lines) | stat: -rw-r--r-- 391 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh
set -e 

update-alternatives --quiet \
  --install /usr/bin/pflags pflags /usr/bin/pflags3 20 \
  --slave /usr/share/man/man8/pflags.8.gz pflags.8.gz /usr/share/man/man8/pflags3.8.gz

for badlink in /usr/man/man8/pflags.8; do
  if [ -L $badlink ]; then
    if ! ls -l $(ls -l $badlink | cut -d">" -f2) >/dev/null 2>$1; then
      rm -f $badlink; 
    fi; 
  fi; 
done

#DEBHELPER#