From: Valentin Vidic Date: Mon, 28 Oct 2013 14:02:47 +0000 (+0100) Subject: Automatska promjena imena kernel paketa. X-Git-Tag: debian/7.0.2~1 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=5dd6880b8dc853af207e2dcf1f08793d69330d28;p=carnet-debian.git Automatska promjena imena kernel paketa. --- 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