Revision: 5641
Author: pebender
Date: Sat Oct 10 03:53:17 2009
Log: - Fixed bug in fetching 64-bit Hulu Desktop.


http://code.google.com/p/minimyth/source/detail?r=5641

Modified:
  /trunk/gar-minimyth/script/perl/perl-MiniMyth/checksums
  /trunk/gar-minimyth/script/perl/perl-MiniMyth/files/MiniMyth.pm

=======================================
--- /trunk/gar-minimyth/script/perl/perl-MiniMyth/checksums     Fri Oct  9  
13:44:36 2009
+++ /trunk/gar-minimyth/script/perl/perl-MiniMyth/checksums     Sat Oct 10  
03:53:17 2009
@@ -1,1 +1,1 @@
-4850637cbdfa104f9e1efd81f665dc80  download/MiniMyth.pm
+c2e2985d7d48d12dfc4b7e52333ac5f6  download/MiniMyth.pm
=======================================
--- /trunk/gar-minimyth/script/perl/perl-MiniMyth/files/MiniMyth.pm     Fri  
Oct  9 13:44:36 2009
+++ /trunk/gar-minimyth/script/perl/perl-MiniMyth/files/MiniMyth.pm     Sat Oct 
 
10 03:53:17 2009
@@ -1917,14 +1917,16 @@
      File::Path::mkpath($local_dir, { mode => 0755 });
      if (! -d $local_dir)
      {
+        File::Path::rmtree(qq($local_dir));
+        $self->message_log('err', qq(failed to create the Adobe Flash  
Player file.));
          return 0;
      }

      $self->message_log('info', qq(downloading Adobe Flash Player  
file '$flash_url'.));
      if (! $self->url_get($flash_url, qq($local_dir/flash.tar.gz)))
      {
-        $self->message_log('err', qq(failed to create the Adobe Flash  
Player file.));
          File::Path::rmtree(qq($local_dir));
+        $self->message_log('err', qq(failed to create the Adobe Flash  
Player file.));
          return 0;
      }
      system(qq(/bin/tar -C $local_dir -zxf $local_dir/flash.tar.gz));
@@ -1965,8 +1967,7 @@
      elsif (-e q(/lib/ld-linux-x86-64.so.2))
      {
          $hulu_file = q(huludesktop.64);
-        $hulu_url  = qq(http://download.hulu.com/huludesktop_x86_64.deb);
-        return 0;
+        $hulu_url  = qq(http://download.hulu.com/huludesktop_amd64.deb);
      }
      else
      {
@@ -1980,6 +1981,8 @@
      File::Path::mkpath($local_dir, { mode => 0755 });
      if (! -d $local_dir)
      {
+        File::Path::rmtree($local_dir);
+        $self->message_log('err', qq(failed to create the Hulu Desktop  
file.));
          return 0;
      }


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"minimyth-commits" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/minimyth-commits?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to