diff -u apt-mirror-0.4.5/debian/control apt-mirror-0.4.5/debian/control --- apt-mirror-0.4.5/debian/control +++ apt-mirror-0.4.5/debian/control @@ -5,7 +5,7 @@ Homepage: http://apt-mirror.sourceforge.net/ Build-Depends: debhelper (>= 5), dpatch Build-Depends-Indep: lsb-release -Standards-Version: 3.7.2 +Standards-Version: 3.7.3 Package: apt-mirror Architecture: all diff -u apt-mirror-0.4.5/debian/changelog apt-mirror-0.4.5/debian/changelog --- apt-mirror-0.4.5/debian/changelog +++ apt-mirror-0.4.5/debian/changelog @@ -1,3 +1,10 @@ +apt-mirror (0.4.5-1ubuntu1) hardy; urgency=low + + * Add 01-ubuntu-mirror-bz2.patch (LP: #184063) + * Bump Debian standards version to 3.7.3, no changes needed + + -- David Futcher Thu, 27 Mar 2008 14:20:06 +0000 + apt-mirror (0.4.5-1) unstable; urgency=low * new upstream release --- apt-mirror-0.4.5.orig/debian/patches/00list +++ apt-mirror-0.4.5/debian/patches/00list @@ -0,0 +1 @@ +01-ubuntu-mirror-bz2.patch --- apt-mirror-0.4.5.orig/debian/patches/01-ubuntu-mirror-bz2.patch +++ apt-mirror-0.4.5/debian/patches/01-ubuntu-mirror-bz2.patch @@ -0,0 +1,61 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01_mirror_bz2_files_too.dpatch by +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Should also mirror bz2 files even though they are not used + +@DPATCH@ + +=== /apt-mirror +================================================================== +--- /apt-mirror (revision 82) ++++ /apt-mirror (local) +@@ -286,9 +286,11 @@ + foreach (@components) { + add_url_to_download($url . $_ . "/source/Release"); + add_url_to_download($url . $_ . "/source/Sources.gz"); ++ add_url_to_download($url . $_ . "/source/Sources.bz2"); + } + } else { + add_url_to_download($uri . "/$distribution/Sources.gz"); ++ add_url_to_download($uri . "/$distribution/Sources.bz2"); + } + } + +@@ -300,13 +302,18 @@ + + add_url_to_download($url . "Release"); + add_url_to_download($url . "Release.gpg"); +- add_url_to_download($url . "Contents-" . $arch . ".gz") if get_variable("_contents"); ++ if (get_variable("_contents")) { ++ add_url_to_download($url . "Contents-" . $arch . ".gz"); ++ add_url_to_download($url . "Contents-" . $arch . ".bz2"); ++ } + foreach (@components) { + add_url_to_download($url . $_ . "/binary-" . $arch . "/Release"); + add_url_to_download($url . $_ . "/binary-" . $arch . "/Packages.gz"); ++ add_url_to_download($url . $_ . "/binary-" . $arch . "/Packages.bz2"); + } + } else { + add_url_to_download($uri . "/$distribution/Packages.gz"); ++ add_url_to_download($uri . "/$distribution/Packages.bz2"); + } + } + +@@ -319,6 +326,7 @@ + s[~][%7E]g if get_variable("_tilde"); + $skipclean{$_} = 1; + $skipclean{$_} = 1 if s[\.gz$][]; ++ $skipclean{$_} = 1 if s[\.bz2$][]; + } + + ###################################################################################### +@@ -490,6 +498,7 @@ + die("apt-mirror: invalid url in index_urls") unless s[^(\w+)://][]; + copy_file(get_variable("skel_path") . "/$_", get_variable("mirror_path") . "/$_"); + copy_file(get_variable("skel_path") . "/$_", get_variable("mirror_path") . "/$_") if(s/\.gz$//); ++ copy_file(get_variable("skel_path") . "/$_", get_variable("mirror_path") . "/$_") if(s/\.bz2$//); + } + + +