File: preinst

package info (click to toggle)
reserialize 20220929-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 104 kB
  • sloc: python: 290; sh: 12; makefile: 2
file content (11 lines) | stat: -rw-r--r-- 284 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

set -e

if [ "$1" = "install" ] || [ "$1" = "upgrade" ]
then
    dpkg-divert --package reserialize --divert /usr/bin/json2yaml.ghc --rename /usr/bin/json2yaml
    dpkg-divert --package reserialize --divert /usr/bin/yaml2json.ghc --rename /usr/bin/yaml2json
fi

#DEBHELPER#