From 5dd6880b8dc853af207e2dcf1f08793d69330d28 Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Mon, 28 Oct 2013 15:02:47 +0100 Subject: [PATCH] Automatska promjena imena kernel paketa. --- debian/config | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/debian/config b/debian/config index 2ffabbe..0e6e4e2 100755 --- a/debian/config +++ b/debian/config @@ -6,6 +6,17 @@ set -e . /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 -- 1.7.10.4