Package: apt-move
Version: 4.2.23
Tags: patch

Hello,
  although apt-move needs rebuild to work with updated apt, so it
is currently uninstallable in unstable, if you'll rebuild it,
you'll notice that all packages are downloaded from the network
again and again as 'apt-get' prefers trusted signed sources
over unsigned, and there is no option how to disable this
behavior (only way I've found is modifying apt-get to treat
all sources as untrusted).

  So I've wrote patch below which I use on my system to get
apt-move happy again (and signed repository as an additional
effect).  Maybe someone else will need additional options passed
to the gpg (like removing --batch), but this is just what sufficed
to me.

  Patch applies to both 4.2.23 in unstable and to Herbert's
upstream 4.2.24.
                                Thanks,
                                        Petr Vandrovec



diff -urN apt-move-4.2.23.orig/apt-move apt-move-4.2.23/apt-move
--- apt-move-4.2.23.orig/apt-move       2004-11-22 00:04:26.000000000 +0100
+++ apt-move-4.2.23/apt-move    2005-08-01 21:31:02.000000000 +0200
@@ -52,6 +52,7 @@
 COPYONLY=no
 PKGCOMP=gzip
 CONTENTS=no
+SIGNINGKEY=
 LISTALL=
 
 # Remember where we came from.
@@ -1324,6 +1325,8 @@
        cat $pf-sha1sum
 
        exec >&-
+
+       [ -n "$SIGNINGKEY" ] && gpg --detach-sign -ao Release.gpg --default-key 
"$SIGNINGKEY" --batch --yes --sign Release
 }
 
 make_contents() {
diff -urN apt-move-4.2.23.orig/apt-move.8 apt-move-4.2.23/apt-move.8
--- apt-move-4.2.23.orig/apt-move.8     2004-11-22 00:04:26.000000000 +0100
+++ apt-move-4.2.23/apt-move.8  2005-08-01 21:35:24.000000000 +0200
@@ -399,6 +399,18 @@
 .B packages
 will generate Contents files.
 
+.TP
+.BR SIGNINGKEY= ""
+If this is set to non-empty string, then
+.B packages
+will sign generated Release files with specified signing key.  You
+must install gnupg before enabling this option.  With current apt 
+you should list compression
+.B none
+in
+.B PKGCOMP
+directive, otherwise apt will complain about missing files.
+
 .PP
 For the
 .I sync
diff -urN apt-move-4.2.23.orig/apt-move.conf apt-move-4.2.23/apt-move.conf
--- apt-move-4.2.23.orig/apt-move.conf  2004-11-21 23:23:15.000000000 +0100
+++ apt-move-4.2.23/apt-move.conf       2005-08-01 21:31:08.000000000 +0200
@@ -45,4 +45,7 @@
 # Set this to yes to make apt-move generate Contents files.
 CONTENTS=no
 
+# Set this to key name to be used for signing Release files.
+SIGNINGKEY=
+
 # End Configuration ------------------------------------------------------


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to