Browse Source

prevent bash from bailing out on "if" clauses with empty list by artifically insert a dummy command to the list; another approach would be to wrap the whole bash "if" construct or the whole rpm section into a huge rpm preprocessor %if but it is unlikely that the result becomes more readable to package maintainers

master
Thomas Lotterer 19 years ago committed by Ralf S. Engelschall
parent
commit
e1446e6da4
  1. 6
      sqlite/sqlite.spec

6
sqlite/sqlite.spec

@ -38,7 +38,7 @@ Class: BASE
Group: Database
License: PD
Version: %{V_v3}
Release: 20061218
Release: 20061229
# package options
%option with_v2 yes
@ -240,7 +240,7 @@ AutoReqProv: no
rm -rf $RPM_BUILD_ROOT
%post
if [ $1 -eq 1 ]; then
if [ $1 -eq 1 ]; then : ;
# optionally link into ODBC
%if "%{with_odbc}" == "yes"
( echo "[SQLite3]"
@ -267,7 +267,7 @@ AutoReqProv: no
fi
%preun
if [ $1 -eq 0 ]; then
if [ $1 -eq 1 ]; then : ;
# optionally unlink from ODBC
%if "%{with_odbc}" == "yes"
$RPM_INSTALL_PREFIX/bin/odbcinst -u -s -l -n "SQLite3 DataSource" >/dev/null 2>&1 || true

Loading…
Cancel
Save