OpenPKG CVS Repository http://cvs.openpkg.org/ ____________________________________________________________________________
Server: cvs.openpkg.org Name: Thomas Lotterer Root: /v/openpkg/cvs Email: [EMAIL PROTECTED] Module: openpkg-src Date: 29-Dec-2006 11:16:31 Branch: HEAD Handle: 2006122910163100 Modified files: openpkg-src/sqlite sqlite.spec Log: 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 Summary: Revision Changes Path 1.121 +3 -3 openpkg-src/sqlite/sqlite.spec ____________________________________________________________________________ patch -p0 <<'@@ .' Index: openpkg-src/sqlite/sqlite.spec ============================================================================ $ cvs diff -u -r1.120 -r1.121 sqlite.spec --- openpkg-src/sqlite/sqlite.spec 18 Dec 2006 18:18:18 -0000 1.120 +++ openpkg-src/sqlite/sqlite.spec 29 Dec 2006 10:16:31 -0000 1.121 @@ -38,7 +38,7 @@ Group: Database License: PD Version: %{V_v3} -Release: 20061218 +Release: 20061229 # package options %option with_v2 yes @@ -240,7 +240,7 @@ 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 @@ 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 @@ . ______________________________________________________________________ The OpenPKG Project www.openpkg.org CVS Repository Commit List openpkg-cvs@openpkg.org