From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.pbcl.net ([88.198.119.4] helo=hetzner.pbcl.net) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1RuMdd-0006S2-8h for openembedded-core@lists.openembedded.org; Mon, 06 Feb 2012 12:21:37 +0100 Received: from elite.brightsigndigital.co.uk ([81.142.160.137] helo=[172.30.1.145]) by hetzner.pbcl.net with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1RuMVu-00057O-Jj for openembedded-core@lists.openembedded.org; Mon, 06 Feb 2012 12:13:38 +0100 From: Phil Blundell To: Patches and discussions about the oe-core layer Date: Mon, 06 Feb 2012 11:13:37 +0000 In-Reply-To: <5ffae3864d6ec5dafadff13381d3177c44392b7e.1328526202.git.otavio@ossystems.com.br> References: <5ffae3864d6ec5dafadff13381d3177c44392b7e.1328526202.git.otavio@ossystems.com.br> X-Mailer: Evolution 3.0.2- Message-ID: <1328526818.14363.2.camel@phil-desktop> Mime-Version: 1.0 Subject: Re: [PATCH 1/2] dhcp: move dhcp leases files handling to postinst/postrm X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Feb 2012 11:21:37 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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.