diff options
author | Chengwei Yang <chengwei.yang@intel.com> | 2012-12-19 09:23:00 +0800 |
---|---|---|
committer | Chengwei Yang <chengwei.yang@intel.com> | 2012-12-19 09:23:00 +0800 |
commit | 5f429d60097e3e379d9ac6c1e3ee92e4dd0929bb (patch) | |
tree | 8fa19863954e0f41f0275dd163b129a0907b2ae6 | |
parent | 51bfe3d8ca09b3f57c526945c40ca2c57072d16e (diff) | |
download | msg-service-5f429d60097e3e379d9ac6c1e3ee92e4dd0929bb.tar.gz msg-service-5f429d60097e3e379d9ac6c1e3ee92e4dd0929bb.tar.bz2 msg-service-5f429d60097e3e379d9ac6c1e3ee92e4dd0929bb.zip |
Fix wrong script
In general, the %{buildroot} will expand to the build root as its name
suggested, this is useful at %install but not scriptlet.
And so the mistake will cause create a directory like below
/opt/home/abuild/rpmbuild/BUILDROOT/msg-service-0.9.2-4.7.i386/opt/usr/dbspace
That's not what we want and it should be /opt/usr/dbspace in fact.
Change-Id: I438fb577ad7479b97800a0056f143ae8e7d5a46e
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
-rwxr-xr-x | packaging/msg-service.spec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/msg-service.spec b/packaging/msg-service.spec index 86c2481..4914c02 100755 --- a/packaging/msg-service.spec +++ b/packaging/msg-service.spec @@ -127,7 +127,7 @@ mkdir -p %{buildroot}/opt/usr/data/msg-service if [ ! -f /opt/usr/dbspace/.msg_service.db ] then - mkdir -p %{buildroot}/opt/usr/dbspace/ + mkdir -p /opt/usr/dbspace/ sqlite3 /opt/usr/dbspace/.msg_service.db "PRAGMA journal_mode = PERSIST; CREATE TABLE MSG_CONVERSATION_TABLE ( |