]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Add support for Mozilla (Firefox) Updates in updxlrator
authorJoern-Ingo Weigert <jiweigert@gmail.com>
Wed, 6 Mar 2013 10:58:48 +0000 (11:58 +0100)
committerJoern-Ingo Weigert <jiweigert@gmail.com>
Wed, 6 Mar 2013 10:58:48 +0000 (11:58 +0100)
This patch add a new source-url in /usr/sbin/updxlratorto support
Mozilla (Firefox) Updates

It hooks on either partial(.mar) (v18.0.1->v18.0.2) or complete(.mar)
updates (v18.0->v19.0) and all *.exe Downloads from *.mozilla.net

config/updxlrator/updxlrator

index 630093bf7288cbbc4c15139c3cf5d0bbfb0830bc..7a2b011614b4cc982ab11bf75b766eccb8bfef86 100644 (file)
@@ -154,6 +154,15 @@ while (<>) {
                $xlrator_url = &check_cache($source_url,$hostaddr,$username,"Avast",$mirror);
        }
 
+        # -----------------------------------------------------------
+        #  Section: Mozilla Downloads
+        # -----------------------------------------------------------
+
+       if ($source_url=~ m@^http://.*\.mozilla\.net/.*\.((complete|partial)\.mar|exe)$@i)
+       { 
+               $xlrator_url = &check_cache($source_url,$hostaddr,$username,"Mozilla",$unique);
+       }
+
        # -----------------------------------------------------------
        #  Section: Mcafee
        # -----------------------------------------------------------