dbconfig-common Syntax Error

Bug #1557153 reported by Richard Laager
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dbconfig-common (Debian)
Fix Released
Unknown
dbconfig-common (Ubuntu)
Fix Released
Undecided
Graham Inggs

Bug Description

Package: dbconfig-common
Version: 2.0.3

internal/mysql has this at line 404:
if [ "$dbc_dbserver" != "" ] && "$dbc_dbserver" != localhost ; then

It needs brackets like this instead:
if [ "$dbc_dbserver" != "" ] && [ "$dbc_dbserver" != localhost ] ; then

Otherwise, I get this (where PACKAGE is the name of the package I'm working on):

/var/lib/dpkg/info/PACKAGE.config: 404: /var/lib/dpkg/info/PACKAGE.config: localhost: not found

If you're looking to reproduce this, note that I'm using /bin/sh (which is dash), not /bin/bash.

Revision history for this message
Richard Laager (rlaager) wrote :

This bug was introduced in dbconfig-common 2.0.3, which is in Xenial. The fix is already in Debian as 2.0.4 (along with a couple other fixes). What is necessary to get dbconfig-common 2.0.4 into Xenial?

Graham Inggs (ginggs)
Changed in dbconfig-common (Ubuntu):
status: New → Confirmed
assignee: nobody → Graham Inggs (ginggs)
Revision history for this message
Graham Inggs (ginggs) wrote :

@rlaager:
> What is necessary to get dbconfig-common 2.0.4 into Xenial?
In future, you can use the requestsync tool in the ubuntu-dev-tools package.

In this case, elbrus is subscribed here, saw your bug and pinged me directly.

Changed in dbconfig-common (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Graham Inggs (ginggs) wrote :

This bug was fixed in the package dbconfig-common - 2.0.4
Sponsored for Richard Laager (rlaager)

---------------
dbconfig-common (2.0.4) unstable; urgency=medium

  * Update Japanese translation, thanks to Takuma Yamada (Closes: #816068)
  * Make sure that after one loop in the error handling we are for sure
    going to raise the error above the priority level.
  * Ask the administrator if backups should be made on upgrade (Closes:
    #463100)
  * Terminate PostgreSQL connections before dropping db (Closes: #755908)
  * Fix typo in MySQL logic introduced in 2.0.3 (Closes: #817889)

 -- Paul Gevers <email address hidden> Mon, 14 Mar 2016 20:19:13 +0100

Changed in dbconfig-common (Debian):
status: Unknown → Fix Released
Revision history for this message
Richard Laager (rlaager) wrote :

Thanks for letting me know about the requestsync tool. I will be sure to use that next time.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.