[Python-modules-commits] r30940 - in packages/sqlparse/trunk/debian (3 files)

jollyroger-guest at users.alioth.debian.org jollyroger-guest at users.alioth.debian.org
Tue Oct 7 12:41:54 UTC 2014


    Date: Tuesday, October 7, 2014 @ 12:41:53
  Author: jollyroger-guest
Revision: 30940

New upstream version 0.1.12

Added:
  packages/sqlparse/trunk/debian/sqlformat.preinst
Modified:
  packages/sqlparse/trunk/debian/changelog
  packages/sqlparse/trunk/debian/control

Modified: packages/sqlparse/trunk/debian/changelog
===================================================================
--- packages/sqlparse/trunk/debian/changelog	2014-10-07 09:11:10 UTC (rev 30939)
+++ packages/sqlparse/trunk/debian/changelog	2014-10-07 12:41:53 UTC (rev 30940)
@@ -1,3 +1,11 @@
+sqlparse (0.1.12-1) unstable; urgency=medium
+
+  * New upstream release.
+  * Bump Standards-Version to 3.9.6. No changes required.
+  * Correctly remove alternatives for old package versions.
+
+ -- Andriy Senkovych <jolly_roger at itblog.org.ua>  Fri, 03 Oct 2014 23:28:42 +0300
+
 sqlparse (0.1.11-1) unstable; urgency=medium
 
   * New upstream release

Modified: packages/sqlparse/trunk/debian/control
===================================================================
--- packages/sqlparse/trunk/debian/control	2014-10-07 09:11:10 UTC (rev 30939)
+++ packages/sqlparse/trunk/debian/control	2014-10-07 12:41:53 UTC (rev 30940)
@@ -9,7 +9,7 @@
  python-pytest, python3-pytest,
  python-setuptools, python3-setuptools,
  pypy
-Standards-Version: 3.9.5.0
+Standards-Version: 3.9.6
 Homepage: http://code.google.com/p/python-sqlparse/
 Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/sqlparse/trunk/
 Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/sqlparse/trunk/
@@ -19,28 +19,23 @@
 Package: python-sqlparse
 Architecture: all
 Depends: ${misc:Depends}, ${python:Depends},
-Breaks: ${python:Breaks}
+Breaks: python-sqlparse (<< 0.1.12-1)
 Suggests: python-sqlparse-doc (>= 0.1.6-1)
 Description: non-validating SQL parser for Python 2
  Sqlparse is a library which provides support for parsing, splitting and
  customizable formatting of SQL statements in Python environment.
  .
- This package also provides sqlformat script which can be used as external
- SQL formatting utility.
- .
  This is the Python 2 version of the package.
 
 Package: python3-sqlparse
 Architecture: all
 Depends: ${misc:Depends}, ${python3:Depends}
+Breaks: python3-sqlparse (<< 0.1.12-1)
 Suggests: python-sqlparse-doc (>= 0.1.6-1)
 Description: non-validating SQL parser for Python 3
  Sqlparse is a library which provides support for parsing, splitting and
  customizable formatting of SQL statements in Python environment.
  .
- This package also provides sqlformat script which can be used as external
- SQL formatting utility.
- .
  This is the Python 3 version of the package.
 
 Package: pypy-sqlparse
@@ -51,9 +46,6 @@
  Sqlparse is a library which provides support for parsing, splitting and
  customizable formatting of SQL statements in Python environment.
  .
- This package also provides sqlformat script which can be used as external
- SQL formatting utility.
- .
  This is the PyPy version of the package.
 
 Package: python-sqlparse-doc
@@ -66,15 +58,13 @@
  Sqlparse is a library which provides support for parsing, splitting and
  customizable formatting of SQL statements in Python environment.
  .
- This package also provides sqlformat script which can be used as external
- SQL formatting utility.
- .
  This package contains HTML documentation for provided module.
 
 Package: sqlformat
 Architecture: all
 Section: text
 Depends: ${misc:Depends}, ${python3:Depends}, python3-sqlparse (= ${binary:Version})
+Breaks: python-sqlparse (<< 0.1.12-1), python3-sqlparse(<< 0.1.12-1)
 Description: SQL formatting utility
  The sqlformat command-line tool can be used to reformat SQL file according to
  specified options or prepare a snippet in some programming language (only

Added: packages/sqlparse/trunk/debian/sqlformat.preinst
===================================================================
--- packages/sqlparse/trunk/debian/sqlformat.preinst	                        (rev 0)
+++ packages/sqlparse/trunk/debian/sqlformat.preinst	2014-10-07 12:41:53 UTC (rev 30940)
@@ -0,0 +1,22 @@
+#!/bin/sh
+
+set -e
+
+case "$1" in
+    install|upgrade)
+        # clean up leftowers from alternatives used up to 0.1.10
+        if update-alternatives --query sqlformat > /dev/null 2>&1 ; then
+            update-alternatives --quiet --remove-all sqlformat 
+        fi
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+    echo "preinst called with unknown argument \`$1'" >&2
+    exit 1
+    ;;
+esac
+
+#DEBHELPER#




More information about the Python-modules-commits mailing list