Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] avahi-systemd: drop postrm, use prerm instead
@ 2012-05-16 16:55 Andreas Oberritter
  2012-05-16 17:17 ` Koen Kooi
  0 siblings, 1 reply; 15+ messages in thread
From: Andreas Oberritter @ 2012-05-16 16:55 UTC (permalink / raw)
  To: openembedded-core

* Calling "systemctl disable" from postrm is too late and
  causes the following error:

| Failed to issue method call: No such file or directory

* Fix indentation of prerm for resulting shell snippet.
* Messing with $D is not needed in *rm scripts.

Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
---
 meta/recipes-connectivity/avahi/avahi.inc |   11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/meta/recipes-connectivity/avahi/avahi.inc b/meta/recipes-connectivity/avahi/avahi.inc
index 61ca25f..f84a81d 100644
--- a/meta/recipes-connectivity/avahi/avahi.inc
+++ b/meta/recipes-connectivity/avahi/avahi.inc
@@ -14,7 +14,7 @@ SECTION = "network"
 # python scripts are under GPLv2+
 LICENSE = "GPLv2+ & LGPLv2.1+"
 
-INC_PR = "r2"
+INC_PR = "r3"
 
 DEPENDS = "expat libcap libdaemon dbus glib-2.0"
 
@@ -163,12 +163,7 @@ pkg_postinst_avahi-systemd() {
 	systemctl enable avahi-daemon.service
 }
 
-pkg_postrm_avahi-systemd() {
-	# can't do this offline
-	if [ "x$D" != "x" ]; then
-		exit 1
-	fi
-
-	systemctl disable avahi-daemon.service
+pkg_prerm_avahi-systemd() {
+systemctl disable avahi-daemon.service
 }
 
-- 
1.7.9.5




^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2012-05-21 12:44 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-16 16:55 [PATCH] avahi-systemd: drop postrm, use prerm instead Andreas Oberritter
2012-05-16 17:17 ` Koen Kooi
2012-05-16 18:38   ` Andreas Oberritter
2012-05-16 18:50     ` Koen Kooi
2012-05-16 19:03       ` Andreas Oberritter
2012-05-18 15:06     ` Enrico Scholz
2012-05-21  8:46       ` Andreas Oberritter
2012-05-21  9:18         ` Enrico Scholz
2012-05-21 10:08           ` Andreas Oberritter
2012-05-21 11:04             ` Enrico Scholz
2012-05-21 11:49               ` Andreas Oberritter
2012-05-21 12:06                 ` Koen Kooi
2012-05-21 12:13                   ` Enrico Scholz
2012-05-21 12:20                     ` Koen Kooi
2012-05-21 12:33                       ` Enrico Scholz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox