Subject: debconf-copydb spews lots of errors on templates files
Date: Thu, 4 Aug 2005 19:13:56 +0100
Package: debconf
Version: 1.4.55
Severity: normal
# debconf-copydb templatedb tmpdb -c Name:tmpdb -c Driver:File -c Filename:/tmp/templates.dat
Use of uninitialized value in exists at /usr/share/perl5/Debconf/Template.pm line 67.
Use of uninitialized value in exists at /usr/share/perl5/Debconf/DbDriver/Cache.pm line 29.
[... repeated lots and lots and lots ...]
The Copy driver expects to find a Template field in each item it's
copying, which is true for config databases but isn't true for template
databases. Nevertheless, it does appear to copy the database
successfully: diff outputs nothing.
Is the right fix just to try the item name if the Template field is
missing, or to have some switch for the type of database being copied?
(That said, I'm not sure how debconf-copydb could know whether to set
such a switch or not. A command-line flag would be nasty.)
Thanks,
--
Colin Watson [[email protected]]
Debbugs is free software and licensed under the terms of the GNU General
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.