<div class="gmail_quote">On Mon, Feb 6, 2012 at 09:13, Phil Blundell <span dir="ltr"><<a href="mailto:philb@gnu.org">philb@gnu.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Mon, 2012-02-06 at 11:03 +0000, Otavio Salvador wrote:<br>
> +pkg_postrm_dhcp-server() {<br>
> + rm -f $D/${localstatedir}/lib/dhcp/dhcpd.leases<br>
> + rm -f $D/${localstatedir}/lib/dhcp/dhcpd6.leases<br>
> + rmdir $D/${localstatedir}/lib/dhcp<br>
> +}<br>
> +<br>
> +pkg_postrm_dhcp-client() {<br>
> + rm -f $D/${localstatedir}/lib/dhcp/dhclient.leases<br>
> + rm -f $D/${localstatedir}/lib/dhcp/dhclient6.leases<br>
> + rmdir $D/${localstatedir}/lib/dhcp<br>
<br>
</div>Are those rmdirs not going to fail if you try to remove one package with<br>
the other one still installed?<br></blockquote><div><br></div><div>I think they will. I'll add an || true on it.</div><div> </div></div>-- <br>Otavio Salvador O.S. Systems<br>E-mail: <a href="mailto:otavio@ossystems.com.br" target="_blank">otavio@ossystems.com.br</a> <a href="http://www.ossystems.com.br" target="_blank">http://www.ossystems.com.br</a><br>
Mobile: +55 53 9981-7854 <a href="http://projetos.ossystems.com.br" target="_blank">http://projetos.ossystems.com.br</a><br><br>