~vcs-imports/debian-policy/master

« back to all changes in this revision

Viewing changes to policy/ap-pkg-diversions.rst

  • Committer: Russ Allbery
  • Author(s): Max-Julian Pogner
  • Date: 2023-09-09 22:26:22 UTC
  • Revision ID: git-v1:5abd1c60445f05fac84dffa743490b14ab099077
FIX: missing quotes in sh script example in file policy/ap-pkg-diversions

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
 
38
38
::
39
39
 
40
 
    if [ upgrade != "$1 ] || dpkg --compare-versions "$2" lt 1.0-2; then
 
40
    if [ upgrade != "$1" ] || dpkg --compare-versions "$2" lt 1.0-2; then
41
41
        dpkg-divert --package smailwrapper --add --rename \
42
42
            --divert /usr/sbin/smail.real /usr/sbin/smail
43
43
    fi
50
50
 
51
51
::
52
52
 
53
 
    if [ remove = "$1" -o abort-install = "$1" -o disappear = "$1 ]; then
 
53
    if [ remove = "$1" -o abort-install = "$1" -o disappear = "$1" ]; then
54
54
        dpkg-divert --package smailwrapper --remove --rename \
55
55
            --divert /usr/sbin/smail.real /usr/sbin/smail
56
56
    fi
62
62
 
63
63
::
64
64
 
65
 
    if [ abort-upgrade = "$1 ] && dpkg --compare-versions "$2" lt 1.0-2; then
 
65
    if [ abort-upgrade = "$1" ] && dpkg --compare-versions "$2" lt 1.0-2; then
66
66
        dpkg-divert --package smailwrapper --remove --rename \
67
67
            --divert /usr/sbin/smail.real /usr/sbin/smail
68
68
    fi