]> code.ossystems Code Review - openembedded-core.git/commitdiff
Fix reinstall target by not assuming the install directory is empty
authorRoss Burton <ross@openedhand.com>
Tue, 7 Aug 2007 15:16:55 +0000 (15:16 +0000)
committerRoss Burton <ross@openedhand.com>
Tue, 7 Aug 2007 15:16:55 +0000 (15:16 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2379 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/packages/db/db_4.2.52.bb

index 6641f9872b977934dec878061055c0dd41bc7ef5..f7850d1413cdc8d3c144ed406eeda750c3acd874 100644 (file)
@@ -14,7 +14,7 @@ HOMEPAGE = "http://www.sleepycat.com"
 LICENSE = "BSD Sleepycat"
 VIRTUAL_NAME ?= "virtual/db"
 CONFLICTS = "db3"
-PR = "r6"
+PR = "r7"
 
 SRC_URI = "http://downloads.sleepycat.com/db-${PV}.tar.gz"
 #SRC_URI_MD5 = "http://downloads.sleepycat.com/db-${PV}.tar.gz.md5"
@@ -93,7 +93,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
 }