Allow re-execution of the do_prep() function 59/24959/3
authorKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Thu, 24 Jul 2014 11:50:29 +0000 (13:50 +0200)
committerKévin THIERRY <kevin.thierry@open.eurogiciel.org>
Fri, 25 Jul 2014 13:32:28 +0000 (15:32 +0200)
When building rpm a second time, the do_prep() function fails because it
assumes it hasn't already ran but will be re-using the previous build
directory which hasn't been cleaned. This patch prevent such a situation
to fail.

Bug-Tizen: BTY-15
Change-Id: I2fe631893f002dc8c093dc18f388fff5033170fc
Signed-off-by: Kévin THIERRY <kevin.thierry@open.eurogiciel.org>
recipes-tizen/rpm/rpm.inc

index b67930c..9ff7cdd 100644 (file)
@@ -115,7 +115,7 @@ do_prep() {
  cp ${S}/packaging/rpm.manifest .
  rm -rf sqlite
  tar xjf ${S}/packaging/db-4.8.30.tar.bz2
- ln -s db-4.8.30 db
+ ln -sfn db-4.8.30 db
  chmod -R u+w db/*
  # will get linked from db3
  rm -f rpmdb/db.h