Package: dbconfig-common
Version: 1.8.7
Severity: normal
File: /usr/sbin/dbconfig-load-include
Hey sean,
I'm exploring dbconfig-common for use in one of my packages. It really
solves a common problem but I'm working on having it integrate
seamlessly with previous (e.g. sarge) versions of my package. That's
where dbconfig-load-include comes in very handy!
It does not work as advertised though. There are two issues:
1) the -f (format) option is listed to default to 'sh', but it doesn't.
When omitting the -f option the program yields "error: you must specify a
format!". Which makes sense to me, so I think just the mention of the
default should be dropped.
2) the short options -d, -s, -p, -u, -P and -t do not work. The man page
and online help give:
dbconfig-load-include [-hv] [-a] [-d [varname]] [-u [varname]] [-p
[varname]] [-s [varname]] [-P [varname]] [-t [varname]] -f format infile
but here's what happens with e.g. -t:
$ dbconfig-load-include -t dbms -f php /etc/package/config.php
unable to read input file dbms
$ dbconfig-load-include -t=dbms -f php /etc/package/config.php
Parse error: parse error, unexpected '=', expecting T_VARIABLE or '$'
in - on line 21
$ dbconfig-load-include --dbtype dbms -f php /etc/package/config.php
unable to read input file dbms
$ dbconfig-load-include --dbtype=dbms -f php /etc/package/config.php
dbc_dbtype='mysql';
So only the last invocation works, but this way of calling is advertised
nowhere.
I hope this report is useful to you, please contact me if you need more
information.
bye,
Thijs
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11-1-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages dbconfig-common depends on:
ii debconf [debconf-2.0] 1.4.59 Debian configuration management sy
ii pwgen 2.04-1 Automatic Password generation
ii ucf 2.003 Update Configuration File: preserv
dbconfig-common recommends no packages.
-- debconf information:
dbconfig-common/import-oldsettings:
dbconfig-common/pgsql/revertconf: false
dbconfig-common/db/dbname: ${pkg}
dbconfig-common/pgsql/manualconf:
dbconfig-common/dbconfig-remove: true
dbconfig-common/mysql/method: unix socket
dbconfig-common/upgrade-backup: true
dbconfig-common/performing_upgrade: false
dbconfig-common/pgsql/authmethod-admin: ident
dbconfig-common/upgrade-error: abort
dbconfig-common/purge: false
dbconfig-common/install-error: abort
dbconfig-common/pgsql/no-empty-passwords:
dbconfig-common/pgsql/admin-user: postgres
dbconfig-common/dbconfig-install: true
dbconfig-common/remote/host:
dbconfig-common/pgsql/changeconf: false
dbconfig-common/remote/newhost:
dbconfig-common/dbconfig-upgrade: true
dbconfig-common/pgsql/no-user-choose-other-method:
dbconfig-common/passwords-do-not-match:
dbconfig-common/remove-error: abort
dbconfig-common/remember-admin-pass: false
dbconfig-common/mysql/admin-user: root
dbconfig-common/pgsql/method: unix socket
dbconfig-common/pgsql/authmethod-user: ident
dbconfig-common/database-type:
dbconfig-common/db/app-user:
dbconfig-common/remote/port:
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]