All of lore.kernel.org
 help / color / mirror / Atom feed
From: Phil Blundell <philb@gnu.org>
To: Patches and discussions about the oe-core layer
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/2] dhcp: move dhcp leases files handling to postinst/postrm
Date: Mon, 06 Feb 2012 11:13:37 +0000	[thread overview]
Message-ID: <1328526818.14363.2.camel@phil-desktop> (raw)
In-Reply-To: <5ffae3864d6ec5dafadff13381d3177c44392b7e.1328526202.git.otavio@ossystems.com.br>

On Mon, 2012-02-06 at 11:03 +0000, Otavio Salvador wrote:
> +pkg_postrm_dhcp-server() {
> +    rm -f $D/${localstatedir}/lib/dhcp/dhcpd.leases
> +    rm -f $D/${localstatedir}/lib/dhcp/dhcpd6.leases
> +    rmdir $D/${localstatedir}/lib/dhcp
> +}
> +
> +pkg_postrm_dhcp-client() {
> +    rm -f $D/${localstatedir}/lib/dhcp/dhclient.leases
> +    rm -f $D/${localstatedir}/lib/dhcp/dhclient6.leases
> +    rmdir $D/${localstatedir}/lib/dhcp

Are those rmdirs not going to fail if you try to remove one package with
the other one still installed?

p.





  reply	other threads:[~2012-02-06 11:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-06 11:03 [PATCH 0/2] Pending patches from O.S. Systems tree Otavio Salvador
2012-02-06 11:03 ` [PATCH 1/2] dhcp: move dhcp leases files handling to postinst/postrm Otavio Salvador
2012-02-06 11:13   ` Phil Blundell [this message]
2012-02-06 11:21     ` Otavio Salvador
2012-02-06 11:27       ` Phil Blundell
2012-02-06 11:03 ` [PATCH 2/2] udev: stop providing cache support by default Otavio Salvador
  -- strict thread matches above, loose matches on Subject: below --
2012-02-06 15:16 [PATCH 0/2 v2] Pending patches from O.S. Systems tree Otavio Salvador
2012-02-06 15:16 ` [PATCH 1/2] dhcp: move dhcp leases files handling to postinst/postrm Otavio Salvador

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1328526818.14363.2.camel@phil-desktop \
    --to=philb@gnu.org \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.