From d9938c3f9b808f8929cdd191f840de75f09e10af Mon Sep 17 00:00:00 2001 From: Yan Yin Date: Tue, 5 Jun 2012 13:03:24 +0800 Subject: [PATCH] create missing directory, fix status checking 1. create directory which is required to run the wrt_commons_reset_db.sh script in %post 2. fix debian style scriptlets status checking to rpm style --- packaging/wrt-commons.changes | 3 +++ packaging/wrt-commons.spec | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 packaging/wrt-commons.changes diff --git a/packaging/wrt-commons.changes b/packaging/wrt-commons.changes new file mode 100644 index 0000000..dc41675 --- /dev/null +++ b/packaging/wrt-commons.changes @@ -0,0 +1,3 @@ +* Wed June 06 2012 Yan Yin - 0.2.25 +- create directory which is required to run the wrt_commons_reset_db.sh script in %post +- fix debian style scriptlets status checking to rpm style diff --git a/packaging/wrt-commons.spec b/packaging/wrt-commons.spec index 5ca2d94..5501d62 100644 --- a/packaging/wrt-commons.spec +++ b/packaging/wrt-commons.spec @@ -54,9 +54,10 @@ make %{?jobs:-j%jobs} rm -rf %{buildroot} %post -if [ -z ${2} ]; then +if [ $1 == 1 ]; then echo "This is new install of wrt-commons" echo "Calling /usr/bin/wrt_commons_reset_db.sh" + mkdir -p /opt/apps/widget/ /usr/bin/wrt_commons_reset_db.sh else # Find out old and new version of databases -- 2.7.4