Hi!

I attached a patch to let the user install flash even if md5sums do not match. This was the case when Adobe released their new version a few days ago.

Gonz

diff -ur flashplugin-nonfree-9.0.48.0.2+really0ubuntu12/debian/changelog flashplugin-nonfree-9.0.48.0.2+really0ubuntu13/debian/changelog
--- flashplugin-nonfree-9.0.48.0.2+really0ubuntu12/debian/changelog	2007-12-07 09:58:07.000000000 +0100
+++ flashplugin-nonfree-9.0.48.0.2+really0ubuntu13/debian/changelog	2007-12-07 10:14:55.000000000 +0100
@@ -1,3 +1,9 @@
+flashplugin-nonfree (9.0.48.0.2+really0ubuntu13) gutsy; urgency=low
+
+  * Let the user install even if md5sums do not match 
+
+ -- Gonzhauser <[EMAIL PROTECTED]>  Fri, 07 Dec 2007 10:14:13 +0100
+
 flashplugin-nonfree (9.0.48.0.2+really0ubuntu12) gutsy; urgency=high
 
   * debian/control: Bumped the nspluginwrapper dependency to force
Nur in flashplugin-nonfree-9.0.48.0.2+really0ubuntu13/debian: files.
Nur in flashplugin-nonfree-9.0.48.0.2+really0ubuntu13/debian: flashplugin-nonfree.
Nur in flashplugin-nonfree-9.0.48.0.2+really0ubuntu13/debian: flashplugin-nonfree.postrm.debhelper.
Nur in flashplugin-nonfree-9.0.48.0.2+really0ubuntu13/debian: flashplugin-nonfree.substvars.
diff -ur flashplugin-nonfree-9.0.48.0.2+really0ubuntu12/debian/postinst flashplugin-nonfree-9.0.48.0.2+really0ubuntu13/debian/postinst
--- flashplugin-nonfree-9.0.48.0.2+really0ubuntu12/debian/postinst	2007-12-07 09:58:07.000000000 +0100
+++ flashplugin-nonfree-9.0.48.0.2+really0ubuntu13/debian/postinst	2007-12-07 10:17:15.000000000 +0100
@@ -33,6 +33,14 @@
 	exit 0 # still install the Debian package, undoes the fix for #387263
 }
 
+fp_md5sum_mismatch() {
+	echo "md5sum mismatch $1. Do you still want to install?"
+	db_get flashplugin-nonfree/md5sum_mismatch
+	if [ "$RET" != "true" ]; then
+		fp_exit_with_error "md5sum mismatch"
+	fi
+}
+
 fp_download_and_unpack() {
 
 	cd /var/cache/flashplugin-nonfree
@@ -77,14 +85,14 @@
 	# verify MD5 checksum of (copied or downloaded) tarball
 	rm -rf install_flash_player_9_linux/
 	echo "821cc72359a937caef85bb4cc74ef5cd  install_flash_player_9_linux.tar.gz"| md5sum -c > /dev/null 2>&1 \
-		|| fp_exit_with_error "md5sum mismatch install_flash_player_9_linux.tar.gz"
+		|| fp_md5sum_mismatch "install_flash_player_9_linux.tar.gz"
 
 	# unpacking and checking the plugin
 	tar xzf install_flash_player_9_linux.tar.gz || fp_exit_with_error "cannot unpack plugin"
 	echo "be5a2f9032f8fc8bccbbf5d96c5028f9  install_flash_player_9_linux/libflashplayer.so"| md5sum -c > /dev/null 2>&1 \
-		|| fp_exit_with_error "plugin changed, not trusted"
+		|| fp_md5sum_mismatch "libflashplayer.so"
 	echo "a81fd3b03b8c6d6e5a14298110718d3f  install_flash_player_9_linux/flashplayer.xpt"| md5sum -c > /dev/null 2>&1 \
-		|| fp_exit_with_error "plugin changed, not trusted"
+		|| fp_md5sum_mismatch "flashplayer.xpt"
 }
 
 OLDDIR=/usr/lib/flashplugin-nonfree-unpackdir
diff -ur flashplugin-nonfree-9.0.48.0.2+really0ubuntu12/debian/templates flashplugin-nonfree-9.0.48.0.2+really0ubuntu13/debian/templates
--- flashplugin-nonfree-9.0.48.0.2+really0ubuntu12/debian/templates	2007-12-07 10:01:32.000000000 +0100
+++ flashplugin-nonfree-9.0.48.0.2+really0ubuntu13/debian/templates	2007-12-07 10:20:38.000000000 +0100
@@ -26,8 +26,7 @@
 Template: flashplugin-nonfree/md5sum_mismatch
 Type: boolean
 Default: true
-_Description: Md5sum for downloaded file did not match. Do you still want to install?
- Sometimes Adobe provides a new flash version. If this Debian package is not updated
- md5sum wouldn't match and install would fail. To be able to install a new version the
- user can trust the new file.
+_Description: Md5sum mismatch. Do you still want to install?
+ Md5sums for the package downloaded from Adobe did not match.
+ Maybe a new flash version is available.
 
-- 
Ubuntu-motu mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-motu

Reply via email to