Software Freedom Law Center

Changeset 581

Show
Ignore:
Timestamp:
01/18/08 11:46:28 (11 months ago)
Author:
bkuhn
Message:

r79@hughes: bkuhn | 2008-01-18 10:43:00 -0500

  • Created a patch to make apt-mirror also mirror (Packages|Sources).bz2
    files. Even though the script actually uses the .gz files, many
    clients actually look for the .bz2 files first, so it seems to make
    sense to put them in place and have them available for the clients
    that connect.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/dists/gutsy/apt-mirror/apt-mirror

    r575 r581  
    287287            add_url_to_download($url . $_ . "/source/Release"); 
    288288            add_url_to_download($url . $_ . "/source/Sources.gz"); 
     289            add_url_to_download($url . $_ . "/source/Sources.bz2"); 
    289290        } 
    290291    } else { 
    291292        add_url_to_download($uri . "/$distribution/Sources.gz"); 
     293        add_url_to_download($uri . "/$distribution/Sources.bz2"); 
    292294    } 
    293295} 
     
    301303        add_url_to_download($url . "Release"); 
    302304        add_url_to_download($url . "Release.gpg"); 
    303         add_url_to_download($url . "Contents-" . $arch . ".gz") if get_variable("_contents"); 
     305        if (get_variable("_contents")) { 
     306            add_url_to_download($url . "Contents-" . $arch . ".gz"); 
     307            add_url_to_download($url . "Contents-" . $arch . ".bz2"); 
     308        } 
    304309        foreach (@components) { 
    305310            add_url_to_download($url . $_ . "/binary-" . $arch . "/Release"); 
    306311            add_url_to_download($url . $_ . "/binary-" . $arch . "/Packages.gz"); 
     312            add_url_to_download($url . $_ . "/binary-" . $arch . "/Packages.bz2"); 
    307313        } 
    308314    } else { 
    309315        add_url_to_download($uri . "/$distribution/Packages.gz"); 
     316        add_url_to_download($uri . "/$distribution/Packages.bz2"); 
    310317    } 
    311318} 
     
    320327    $skipclean{$_} = 1; 
    321328    $skipclean{$_} = 1 if s[\.gz$][]; 
     329    $skipclean{$_} = 1 if s[\.bz2$][]; 
    322330} 
    323331 
     
    491499    copy_file(get_variable("skel_path") . "/$_", get_variable("mirror_path") . "/$_"); 
    492500    copy_file(get_variable("skel_path") . "/$_", get_variable("mirror_path") . "/$_") if(s/\.gz$//); 
     501    copy_file(get_variable("skel_path") . "/$_", get_variable("mirror_path") . "/$_") if(s/\.bz2$//); 
    493502} 
    494503 

SFLC Main Page

[frdm] Support SFLC