Your message dated Thu, 28 Jul 2011 13:12:40 +0000
with message-id <[email protected]>
and subject line Bug#635723: fixed in debmirror 1:2.9
has caused the Debian Bug report #635723,
regarding debmirror: please allow initial mirroring of empty mirrors
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 [email protected]
immediately.)


-- 
635723: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=635723
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: debmirror
Version: 1:2.8
Severity: wishlist

Hi,

the attached patch allows to mirror a empty mirror once on creation.
I needed it to create a valid (but empty) wheezy security mirror.

regards
Stefan
diff -uNrp debmirror-2.8~bpo60+1.orig/debmirror debmirror-2.8~bpo60+1/debmirror
--- debmirror-2.8~bpo60+1.orig/debmirror	2011-03-21 18:03:12.000000000 +0100
+++ debmirror-2.8~bpo60+1/debmirror	2011-07-28 13:46:36.059369695 +0200
@@ -572,6 +572,7 @@ our $allow_dist_rename=0;
 our $debmarshal=0;
 our $slow_cpu=0;
 our $check_gpg=1;
+our $new_mirror=0;
 my @errlog;
 my $HOME;
 ($HOME = $ENV{'HOME'}) or die "HOME not defined in environment!\n";
@@ -772,7 +773,10 @@ say("Debmarshal snapshots kept.") if $de
 
 # Set up mirror directory and resolve $mirrordir to a full path for
 # locking and rsync
-make_dir($mirrordir) if (! -d $mirrordir);
+if (! -d $mirrordir) {
+  make_dir($mirrordir);
+  $new_mirror = 1;
+}
 die "You need write permissions on $mirrordir" if (! -w $mirrordir);
 chdir($mirrordir) or die "chdir $mirrordir: $!";
 $mirrordir = cwd();
@@ -1187,7 +1191,7 @@ SOURCE:  foreach my $file (@source_files
   }
 
   # Sanity check to avoid completely nuking a mirror.
-  if ($empty_mirror) {
+  if ($empty_mirror && ! $new_mirror) {
     print "Errors:\n ".join(" ",@errlog) if (@errlog);
     die "No packages after parsing Packages and Sources files!\n";
   }

--- End Message ---
--- Begin Message ---
Source: debmirror
Source-Version: 1:2.9

We believe that the bug you reported is fixed in the latest version of
debmirror, which is due to be installed in the Debian FTP archive:

debmirror_2.9.dsc
  to main/d/debmirror/debmirror_2.9.dsc
debmirror_2.9.tar.gz
  to main/d/debmirror/debmirror_2.9.tar.gz
debmirror_2.9_all.deb
  to main/d/debmirror/debmirror_2.9_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Joey Hess <[email protected]> (supplier of updated debmirror package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 28 Jul 2011 14:57:36 +0200
Source: debmirror
Binary: debmirror
Architecture: source all
Version: 1:2.9
Distribution: unstable
Urgency: low
Maintainer: Joey Hess <[email protected]>
Changed-By: Joey Hess <[email protected]>
Description: 
 debmirror  - Debian partial mirror script, with ftp and package pool support
Closes: 631302 635723
Changes: 
 debmirror (1:2.9) unstable; urgency=low
 .
   * Use Net::INET6Glue to support making ipv6 connections. Closes: #631302
   * Avoid sanity check for empty mirror, to allow mirroring an empty mirror
     if this is the first time debmirror is run. Closes: #635723
     Thanks, Stefan Kisdaroczi
Checksums-Sha1: 
 61e7d4e3560cb3501ea1feca10eea310a34f5aad 1451 debmirror_2.9.dsc
 409eb44b1b422766b2d51168a826e7ff58cf38b0 48088 debmirror_2.9.tar.gz
 d01e7a8d3d3cb57c9132f5689d3da0d2d3592e6c 51130 debmirror_2.9_all.deb
Checksums-Sha256: 
 28b57e96d7f4ff440567ad84cd0253c631dcd9711f06d97cfb04490a3fe9b3d8 1451 
debmirror_2.9.dsc
 422d2f37b6251dfc9cd81e1308bf741e80bc1b4db29a5565cf2dc9a062419746 48088 
debmirror_2.9.tar.gz
 635b3159efc4b8aef485992c27986bfd34dda821853e4794a1d4faa1c9db7a8c 51130 
debmirror_2.9_all.deb
Files: 
 cac48e50832220bb92f827d5f004fa0e 1451 net extra debmirror_2.9.dsc
 babfe418e8475a3e1e83e4d558ba93da 48088 net extra debmirror_2.9.tar.gz
 d0f47f1d456f811221087c51e1f90502 51130 net extra debmirror_2.9_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIVAwUBTjFc+8kQ2SIlEuPHAQg8ew//dClzUfva5DAk9uwMSyNpU/QFl4i1ofCn
XA7Pv8NYZY7YvkZjKmcIF/unS4mNJkn6aVjnhHL/pk6bhbeKbn0fHPQ+XKc8R2Cf
a6YnpjU2/K/kKSY58xWfeDL4Adk33g1wJq8k/iofclI+Y7818u3tHO0xNzPM7+lo
FQNey+3Z5H9069HSrCP4yKe/xmz63Hf+R/u/PfLLANj2zbQxAlmeQUzbgUOIxtIG
DWMDa0rteX74uSyH8sg9Dbojsw0be04d2LhxR/Y9CfFiWCt7lp7WVxAuJ1kHXAZB
hkeZUElEeU7QD4soyhBZu0Kuy0JjW0N6rlztTSZclYt/OxagLqKXkKNd2ezV1oIb
F/ZUQ+gBsJJNPm+3lA+DLbFYmEThGl0qUiOhNRZ0LBW3A3xL+//7BOdbyZTbQVUx
j6yWfpa9MVQ8B357C1xquj8IE2GRDrHHaS/MwE2jeEoDu8XWK0/5uESMYFYy5+9r
5MErvwXkWj6M9w2MM6wvuxSudjb9tC26TVk4NDBSTFK06Prd5UlLrjLt0K/gMcmN
cILUJA8EDmQwRgd4mdKo1tz1tFPZTCwwAvFGIC/owcCpOrg2Nigzq6Jfbnwy6/PV
dGULHQjhxX+2D+O43zK9qXFBQ7TyJnv6XV8zZibAyQJo2WFFULiirAbn+LE/MxX+
8GnMEM6stQY=
=TW0b
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to