--- 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!
<stephen@marenka.net>
--- End Message ---
--- Begin Message ---
- To: Stephen R Marenka <stephen@marenka.net>
- Cc: 231296-done@bugs.debian.org
- Subject: Re: Bug#231296: download in mirror format
- From: Ansgar Burchardt <ansgar@debian.org>
- Date: Thu, 20 Oct 2016 00:24:39 +0200
- Message-id: <87y41kc6zc.fsf@deep-thought.43-1.org>
- In-reply-to: <20040205164640.GK23949@marenka.net> (Stephen R. Marenka's message of "Thu, 5 Feb 2004 10:46:40 -0600")
- References: <20040205164640.GK23949@marenka.net>
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 ---