commit | 806e58ee66ce93d79ca7358787406eb7d3be6001 | [log] [tgz] |
---|---|---|
author | Pau Espin Pedrol <pespin@sysmocom.de> | Wed Dec 19 15:55:13 2018 +0100 |
committer | Pau Espin Pedrol <pespin@sysmocom.de> | Wed Dec 19 15:55:17 2018 +0100 |
tree | 85f6edaa6a4cad9199cc4e07cb6c3b6be0f33eec | |
parent | 354102dc12bf58aa7d7f4ec770bae4125f98740e [diff] [blame] |
osmo-hlr: Fix do_compile if hlr.db is already populated If compile is rerun on a workdir with hlr.db already populated, sqlite will fail announcing some tables already exist. Change-Id: I244df1ff4554708a5f619b288a097eb0a672e660
diff --git a/recipes-osmocom/osmo-hlr/osmo-hlr.inc b/recipes-osmocom/osmo-hlr/osmo-hlr.inc index 7e75d13..6d8b748 100644 --- a/recipes-osmocom/osmo-hlr/osmo-hlr.inc +++ b/recipes-osmocom/osmo-hlr/osmo-hlr.inc
@@ -10,6 +10,7 @@ inherit autotools pkgconfig systemd do_compile_append() { + rm -f ${WORKDIR}/hlr.db sqlite3 ${WORKDIR}/hlr.db < ${S}/sql/hlr.sql }