]> git.proxmox.com Git - mirror_ifupdown2.git/commit
ifupdown2: fixup maintainer scripts
authorJonathan Toppins <jtoppins@cumulusnetworks.com>
Tue, 21 Apr 2015 21:07:46 +0000 (14:07 -0700)
committerSam Tannous <stannous@cumulusnetworks.com>
Wed, 3 Jun 2015 17:11:22 +0000 (13:11 -0400)
commit748b571009e618936eea8f32899d237606616be9
tree837a8e39a2abc5c769d243f789d7110245c97617
parentf213551e8851b02ecb5309ff2e75d529e153b4ca
ifupdown2: fixup maintainer scripts

Testing Done: of course none ;) Will update when I have some time to test

fupdown2's postinst and postrm scripts do not conform to Debian's policy
for maintainer scripts [1]. Specific non-conformance follows:

* fixed maintainer scripts so they only use /bin/sh as other shells are
  non-essential packages and may not exist on the system
* fixed maintainer scripts so only actions specified by $1 are performed
  per run of the script
* fixed maintainer scripts to only support specific values for $1, and
  will otherwise exit with error
* included at the bottom of the postrm script the "#DEBHELPER#" tag as
  during package building debianhelper will inject extra code at this
  location

[1] https://www.debian.org/doc/debian-policy/ch-maintainerscripts.html
(cherry picked from commit 2289fe4e90a0134fcb07fe7e2e838de755d73e68)
ifupdown2/debian/python-ifupdown2.postinst
ifupdown2/debian/python-ifupdown2.postrm