. /usr/share/debconf/confmodule
db_version 2.0
+# Rewrite of renamed packages
+db_fget carnet-debian/packages seen
+if [ "$RET" = "true" ]; then
+ db_get carnet-debian/packages
+ packages="$RET"
+ if echo $packages | grep -qw kernel-2.6-cn; then
+ packages=$( echo $packages | sed 's/kernel-2.6-cn/kernel-cn/' )
+ db_set carnet-debian/packages "$packages"
+ fi
+fi
+
# Show dialogs if started from postinst
if [ "$CN_POSTINST" ]; then
db_fset carnet-debian/packages seen false