db: Use rm -rf instead of rmdir (which broke re-installation).
authorLeon Woestenberg <leon.woestenberg@gmail.com>
Sat, 5 May 2007 22:44:35 +0000 (22:44 +0000)
committerLeon Woestenberg <leon.woestenberg@gmail.com>
Sat, 5 May 2007 22:44:35 +0000 (22:44 +0000)
packages/db/db_4.2.52.bb
packages/db/db_4.3.29.bb

index 0556528..a0c394f 100644 (file)
@@ -91,7 +91,7 @@ do_install_append() {
        if test -d "${D}/${prefix}/docs"
        then
                mkdir -p "${D}/${datadir}"
-               test ! -d "${D}/${docdir}" || rmdir "${D}/${docdir}"
+               test ! -d "${D}/${docdir}" || rm -rf "${D}/${docdir}"
                mv "${D}/${prefix}/docs" "${D}/${docdir}"
        fi
 }
index 3c14b9e..474e737 100644 (file)
@@ -92,7 +92,7 @@ do_install_append() {
        if test -d "${D}/${prefix}/docs"
        then
                mkdir -p "${D}/${datadir}"
-               test ! -d "${D}/${docdir}" || rmdir "${D}/${docdir}"
+               test ! -d "${D}/${docdir}" || rm -rf "${D}/${docdir}"
                mv "${D}/${prefix}/docs" "${D}/${docdir}"
        fi
 }