Your message dated Thu, 20 Oct 2016 00:24:39 +0200
with message-id <87y41kc6zc....@deep-thought.43-1.org>
and subject line Re: Bug#231296: download in mirror format
has caused the Debian Bug report #231296,
regarding download in mirror format
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
231296: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=231296
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: debootstrap
Version: 0.2.26
Severity: wishlist
Tags: patch
This small patch allows debootstrap to download packages into a
mirror/pool-dists format respository instead of into an apt directory.
diff -u debootstrap-0.2.26/debootstrap debootstrap-0.2.26-mir/debootstrap
--- debootstrap-0.2.26/debootstrap 2003-11-10 08:06:10.000000000 -0600
+++ debootstrap-0.2.26-mir/debootstrap 2004-02-05 10:20:46.000000000 -0600
@@ -37,6 +37,7 @@
--arch set the target architecture (use if no dpkg)
[ --arch powerpc ]
--download-only download packages, but don't perform installation
+ --download-mirror as --download-only, except in mirror format
--print-debs print the packages to be installed, and exit
--unpack-tarball acquire .debs from a tarball instead of http
--boot-floppies used for internal purposes by boot-floppies
@@ -81,6 +82,11 @@
JUST_PRINT_DEBS=yes
shift
;;
+ --download-mirror)
+ DOWNLOAD_ONLY=yes
+ DOWNLOAD_MIRROR=yes
+ shift
+ ;;
--download-only)
DOWNLOAD_ONLY=yes
shift
@@ -205,6 +211,10 @@
exit 0
fi
+if [ "$DOWNLOAD_MIRROR" ]; then
+ download_style mirror
+fi
+
download $all_debs
if [ "$DOWNLOAD_ONLY" ]; then
diff -u debootstrap-0.2.26/functions debootstrap-0.2.26-mir/functions
--- debootstrap-0.2.26/functions 2004-01-30 11:00:51.000000000 -0600
+++ debootstrap-0.2.26-mir/functions 2004-02-05 10:00:46.000000000 -0600
@@ -126,6 +126,10 @@
DEBFOR=apt_debfor
export APTSTATE DLDEST DEBFOR
;;
+ "mirror")
+ DLDEST=mirror_dest
+ export DLDEST
+ ;;
*)
error 1 BADDLOAD "unknown download style"
;;
@@ -275,6 +279,24 @@
); done
}
+mirror_dest () {
+ # args:
+ # deb package version arch mirror path
+ # pkg suite component arch mirror path
+ # rel suite mirror path
+ case "$1" in
+ "deb")
+ echo "$6"
+ ;;
+ "pkg")
+ echo "$6"
+ ;;
+ "rel")
+ echo "$4"
+ ;;
+ esac
+}
+
apt_dest () {
# args:
# deb package version arch mirror path
--
Stephen R. Marenka If life's not fun, you're not doing it right!
<step...@marenka.net>
--- End Message ---
--- Begin Message ---
Hi,
Stephen R Marenka writes:
> This small patch allows debootstrap to download packages into a
> mirror/pool-dists format respository instead of into an apt directory.
I don't see a reason why this should be useful. As this request has
been around quite some time (12+ years), I'm closing it.
If this is still useful, feel free to explain and reopen the bug.
Ansgar
--- End Message ---