Package: apt-move
Version: 4.2.23-0.1
Severity: wishlist
Tags: patch
It would be nice if apt-move could take files from distribution CDs.
Attached is my patch to add a "copydir" option that does this.
(The version number above is my psudo-NMU version used to test this
patch.)
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.4.27-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages apt-move depends on:
ii apt [libapt-pkg-libc6.3-5-3 0.6.38 Advanced front-end for dpkg
ii ash 0.5.2-5 Compatibility package for the Debi
ii bc 1.06-17 The GNU bc arbitrary precision cal
ii coreutils 5.2.1-2 The GNU core utilities
ii dash 0.5.2-5 The Debian Almquist Shell
ii libc6 2.3.2.ds1-22 GNU C Library: Shared libraries an
ii libgcc1 1:4.0.0-11 GCC support library
ii libstdc++5 1:3.3.6-7 The GNU Standard C++ Library v3
ii mawk 1.3.3-11 a pattern scanning and text proces
Versions of packages apt-move recommends:
ii apt 0.6.38 Advanced front-end for dpkg
-- no debconf information
diff -ur ../src2/apt-move-4.2.23/apt-move apt-move-4.2.23/apt-move
--- ../src2/apt-move-4.2.23/apt-move 2004-11-21 15:04:26.000000000 -0800
+++ apt-move-4.2.23/apt-move 2005-07-02 06:24:56.000000000 -0700
@@ -97,6 +97,8 @@
Usage: apt-move [-c conffile] [-d dist] [-afqt] COMMAND
Commands:
+ copydir - like movefile, but copies all .deb files
+ from the specified directory
get - update your master files from local apt.
getlocal - alias of get.
fsck - fix broken repositories, use with caution.
@@ -1855,6 +1857,16 @@
$1$2
;;
+copydir)
+ shift
+ if [ -z "$*" ]; then
+ showusage
+ fi
+ PROGNAME=copydir
+ COPYONLY=yes
+ find "$*" -type f -name \*.deb -print -o -name \*.udeb -print -o -name
\*.dsc -print | movefiles
+ ;;
+
*)
showusage
;;
diff -ur ../src2/apt-move-4.2.23/apt-move.8 apt-move-4.2.23/apt-move.8
--- ../src2/apt-move-4.2.23/apt-move.8 2004-11-21 15:04:26.000000000 -0800
+++ apt-move-4.2.23/apt-move.8 2005-07-01 19:45:11.000000000 -0700
@@ -198,6 +198,13 @@
it will move the files specified on the command line.
.TP
+.BI copydir \ directory...
+This command is similar to movefile. Instead of moving files from the
+command line, it will copy .deb files from the specified directory.
+This is useful for copying the pool of a Debian CD to an apt
+repository.
+
+.TP
\fBlistbin \fR[ \fBmirror \fR| \fBsync \fR| \fBrepo \fR]
This command prints a list of packages which may serve as the input to
mirrorbin or mirrorsrc. If the argument is
Only in apt-move-4.2.23/: build-stamp
diff -ur ../src2/apt-move-4.2.23/debian/changelog
apt-move-4.2.23/debian/changelog
--- ../src2/apt-move-4.2.23/debian/changelog 2004-11-21 15:04:26.000000000
-0800
+++ apt-move-4.2.23/debian/changelog 2005-07-01 19:49:07.000000000 -0700
@@ -1,3 +1,11 @@
+apt-move (4.2.23-0.1) UNRELEASED; urgency=low
+
+ * Psudo-NMU
+ * add copydir
+ * rebuild with current apt
+
+ -- Blars Blarson <[EMAIL PROTECTED]> Fri, 1 Jul 2005 19:47:34 -0700
+
apt-move (4.2.23) unstable; urgency=low
* New maintainer (closes: #282100).
Only in apt-move-4.2.23/debian: files
Only in apt-move-4.2.23/debian: substvars
Only in apt-move-4.2.23/debian: tmp
Only in apt-move-4.2.23/: fetch
Only in apt-move-4.2.23/: fetch.o