Package: flashplugin-nonfree
Version: 1:3.4
Followup-For: Bug #752023

Found a workaround/possible fix:

The update-flashplugin script fetches
http://people.debian.org/~bartm/flashplugin-nonfree/get-upstream-version.pl.gz.pgp
and runs it.
This is done in /usr/sbin/update-flashplugin-nonfree around line 200.

This perl script is no longer valid for adobe's new landing site.
The script scrapes Adobe.com for a link to "Adobe Flash Plugin" and
then verifies the link is valid.
Next the script scrapes the link it found for the latest adobe version
and prints it to the console.

I have created a patch for that file as shown below.

The easiest fix would be to have Bart Martens update his
get-upstream-version.pl.gz.pgp on his debian people page to account
for this.

--- get-upstream-version.pl 2014-06-19 12:53:02.526905033 -0400
+++ test/get-upstream-version.pl 2014-06-19 12:57:55.630909576 -0400
@@ -46,8 +46,7 @@
 my $url = "http://www.adobe.com/";;
 $page = read_page( $ARGV[0], $url );
 die "failed to read $url" if( $page eq "" );
-
-if( $page !~ m,<a class="globalnav__sitemap__item__link"
href="(https://get\.adobe\.com/flashplayer\?promoid=[^"]+)">,s )
+if( $page !~ m,<a href="([^"]+)">Adobe Flash Player</a>,s )
 {
  if( -d "/var/cache/flashplugin-nonfree" )
  {
@@ -60,14 +59,14 @@

 my $link_to_flash = $1;

-if( $link_to_flash =~
m%^https://get\d*\.adobe\.com/flashplayer\?promoid=[A-Z]+$% )
+if( $link_to_flash =~
m%^http://get\d*\.adobe\.com/flashplayer/\?promoid=[A-Z]+$% )
 {
  $url = $link_to_flash;
 }
 else
 {
  $link_to_flash =~ s,^/,,;
- die "link to flash contains invalid characters: '$link_to_flash'"
if( $link_to_flash !~ m%^[a-zA-Z0-9_/=?]+$% );
+ die "link to flash contains invalid characters: $link_to_flash" if(
$link_to_flash !~ m%^[a-zA-Z0-9_/=?]+$% );
  $url = "http://www.adobe.com/$link_to_flash";;
 }



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.14-1-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages flashplugin-nonfree depends on:
ii  binutils               2.24.51.20140604-3
ii  debconf [debconf-2.0]  1.5.53
ii  gnupg                  1.4.16-1.1
ii  libatk1.0-0            2.12.0-1
ii  libcairo2              1.12.16-2
ii  libcurl3-gnutls        7.37.0-1+b1
ii  libfontconfig1         2.11.0-5
ii  libfreetype6           2.5.2-1
ii  libgcc1                1:4.9.0-6
ii  libglib2.0-0           2.40.0-3
ii  libgtk2.0-0            2.24.23-1
ii  libnspr4               2:4.10.6-1
ii  libnss3                2:3.16.1-1
ii  libpango1.0-0          1.36.3-1
ii  libstdc++6             4.9.0-6
ii  libx11-6               2:1.6.2-2
ii  libxext6               2:1.3.2-1
ii  libxt6                 1:1.1.4-1
ii  wget                   1.15-1+b1

flashplugin-nonfree recommends no packages.

Versions of packages flashplugin-nonfree suggests:
ii  fonts-dejavu               2.34-1
pn  hal                        <none>
pn  iceweasel                  <none>
pn  konqueror-nsplugins        <none>
ii  ttf-mscorefonts-installer  3.5
pn  ttf-xfree86-nonfree        <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to