Skip to contentSkip to conversation

gconf: Avoid error when trying to delete files that don't exist

PATCH Applied Phil Blundell 2 participants 2 messages Oct 17, 2012 – Oct 18, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gconf: Avoid error when trying to delete files that don't exist

Use "rm -f" in do_install_append() so we don't fail if the files we're trying to delete have already been removed. This can happen if the distro policy suppresses both static libs and .la files.

---
 meta/recipes-gnome/gnome/gconf_3.2.3.bb |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-gnome/gnome/gconf_3.2.3.bb +2 -2
index dc3520f..4d77a14 100644
@@ -33,8 +33,8 @@ do_install_append() {
 	install -d ${D}${sysconfdir}/gconf/gconf.xml.system
 
 	# this stuff is unusable
-	rm ${D}${libdir}/GConf/*/*.*a
-	rm ${D}${libdir}/gio/*/*.*a
+	rm -f ${D}${libdir}/GConf/*/*.*a
+	rm -f ${D}${libdir}/gio/*/*.*a
 }
 
 # disable dbus-x11 when x11 isn't in DISTRO_FEATURES
Signature · 1 line
1.7.10.4
Applied
#1 lore raw
Quoted 15 lines · Phil Blundell

Use "rm -f" in do_install_append() so we don't fail if the files we're trying to delete have already been removed. This can happen if the distro policy suppresses both static libs and .la files.

---
  meta/recipes-gnome/gnome/gconf_3.2.3.bb |    4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-gnome/gnome/gconf_3.2.3.bb +0 -0
index dc3520f..4d77a14 100644

meta/recipes-gnome/gnome/gconf_3.2.3.bb do_install_append() { · line 40

Quoted 10 lines
meta/recipes-gnome/gnome/gconf_3.2.3.bb +2 -2
@@ -33,8 +33,8 @@ do_install_append() {
  	install -d ${D}${sysconfdir}/gconf/gconf.xml.system
 
  	# this stuff is unusable
-	rm ${D}${libdir}/GConf/*/*.*a
-	rm ${D}${libdir}/gio/*/*.*a
+	rm -f ${D}${libdir}/GConf/*/*.*a
+	rm -f ${D}${libdir}/gio/*/*.*a
  }
 
  # disable dbus-x11 when x11 isn't in DISTRO_FEATURES

Merged into OE-Core

Thanks
Sau!