[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#361872: debconf-copydb: Trashes debconf database in /target



On Mon, Apr 10, 2006 at 11:42:29PM +0200, Frans Pop wrote:
> When debconf-copydb is run from pkgsel's postinst script, it deletes the 
> existing /var/cache/debconf/templates.dat in /target; after it has run 
> only copied templates are present.
> 
> This results in the problem that has been reported that tasksel is not 
> translated. Commenting out the debconf-copydb statement solves this 
> problem.

I'm unable to reproduce this with 0.102 in a normal (ie. non-d-i)
environment:

  trofast:~/nmu/cdebconf-0.102# rm /target/var/cache/debconf/*
  zsh: sure you want to delete all the files in /target/var/cache/debconf [yn]? y
  trofast:~# /usr/lib/cdebconf/debconf-copydb -p apache-common configdb target_configdb
  trofast:~# grep ^Name: /target/var/cache/debconf/templates.dat
  Name: apache-common/confignotes
  Name: apache-common/logs
  Name: apache-common/old-logrotate-exists
  trofast:~# /usr/lib/cdebconf/debconf-copydb -p acpi configdb target_configdb
  trofast:~# grep ^Name: /target/var/cache/debconf/templates.dat
  Name: acpid/modules
  Name: acpid/noacpi
  Name: apache-common/confignotes
  Name: apache-common/logs
  Name: apache-common/old-logrotate-exists

configdb is here set up to be my normal debconf database (so I have some
source data to test with), but I can't understand why this would work outside
d-i but not from pkgsel... any ideas?

/* Steinar */
-- 
Homepage: http://www.sesse.net/



Reply to: