Automatska promjena imena kernel paketa.
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Mon, 28 Oct 2013 14:02:47 +0000 (15:02 +0100)
committerValentin Vidic <Valentin.Vidic@CARNet.hr>
Mon, 28 Oct 2013 14:02:47 +0000 (15:02 +0100)
debian/config

index 2ffabbe..0e6e4e2 100755 (executable)
@@ -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