tag 607925 +patch
thanks

On Mon, 27 Dec 2010 00:21:45 -0600
"Drew Scott Daniels" <ddani...@umalumni.mb.ca> wrote:

> This is presumably a one line fix in the install script for the two
> day old upgrade bug:
> 
> nstall -m 644 db/mysql-mods-1.4b5.sql \
> debian/$@/usr/share/dbconfig-common/data/ndoutils-mysql/upgrade/mysql/1.4b5
> + install -m 644 db/mysql-mods-1.4b8.sql \
> +
> debian/$@/usr/share/dbconfig-common/data/ndoutils-mysql/upgrade/mysql/1.4b9
[...]

Thanks, Drew.
The patch has to be a bit more involved as for some reason there seems
to be two upgrading scripts (-mods- and -upgrade-), and one of then
actually contains an SQL syntax error which we have to fix.
The attached patch fixed my ndoutils instance.
Upgrading 1.4b7 -> 1.4b9 also has been tested in a Squeeze sandbox.

Hendrik, are you OK with me preparing an NMU?
Index: debian/rules
===================================================================
--- debian/rules        (revision 1917)
+++ debian/rules        (working copy)
@@ -192,6 +192,10 @@
                
debian/$@/usr/share/dbconfig-common/data/ndoutils-mysql/upgrade/mysql/1.4b4
        install -m 644 db/mysql-mods-1.4b5.sql \
                
debian/$@/usr/share/dbconfig-common/data/ndoutils-mysql/upgrade/mysql/1.4b5
+       sed -e 's/`nagios`\.//' < db/mysql-upgrade-1.4b8.sql \
+               > 
debian/$@/usr/share/dbconfig-common/data/ndoutils-mysql/upgrade/mysql/1.4b8
+       sed -e 's/^[[:space:]]*;/--/' < db/mysql-mods-1.4b8.sql \
+               >> 
debian/$@/usr/share/dbconfig-common/data/ndoutils-mysql/upgrade/mysql/1.4b8
        
        # use debhelper
        dh_installchangelogs -p$@ -P$(b)/$@

Reply via email to