#576576 option to skip installer for specific releases

#576576#5
Date:
2010-04-05 19:31:10 UTC
From:
To:
Hello!

In addition to the patches waiting in bug 455082, here
is a patch to add a "--skip-installer" option to skip d-i
files for specific dists (this is very handy for Ubuntu).

Thanks,

#576576#10
Date:
2010-05-10 17:08:45 UTC
From:
To:
I don't like this. It's way too complicated for the problem.

To be honest, I think the whole test is redundant and should just be
removed (see also #581013). Instead of failing when a d-i section is
missing we should just print a warning and skip it.

#576576#15
Date:
2010-05-10 20:06:55 UTC
From:
To:
That sounds fine to me.
#576576#20
Date:
2010-05-13 03:31:00 UTC
From:
To:
I tried with security.debian.org [1] which does not have a d-i section
for lenny, but I don't get any errors (even without --dry-run). So it
seems that non-existing sections are already skipped without any problems.

Also note that if none of the dists that are being mirrored have a d-i
section, then the easiest solution is to simply not specify it.

[1] debmirror --dry-run --host=security.debian.org --method=http \
    --dist=lenny/updates --root=debian-security \
    --section=main,main/debian-installer \
    --nosource --verbose --ignore-release tmp

Mirroring to tmp from http://security.debian.org/debian-security/
Arches: i386
Dists: lenny/updates
Sections: main,main/debian-installer
Pdiff mode: use
Will clean up AFTER mirroring.
Attempting to get lock, this might take 2 minutes before it fails.
Get Release files.
[0%] Getting: dists/lenny/updates/Release... ok
[0%] Getting: dists/lenny/updates/Release.gpg... ok
gpgv: Signature made Tue 11 May 2010 09:27:15 PM CEST using RSA key ID 55BE302B
gpgv: Good signature from "Debian Archive Automatic Signing Key (5.0/lenny) <ftpmaster@debian.org>"
Get Packages and Sources files and other miscellany.
dists/lenny/updates/main/binary-i386/Packages.gz needs fetch
[  2%] Getting: dists/lenny/updates/main/binary-i386/Packages.gz... ok
dists/lenny/updates/main/binary-i386/Release needs fetch
[100%] Getting: dists/lenny/updates/main/binary-i386/Release... ok
Parse Packages and Sources files and add to the file list everything therein.
[...]

#576576#27
Date:
2011-11-12 14:36:41 UTC
From:
To:
Hi Kees (2010.04.05_21:31:10_+0200)

This is mostly superseded by a largely identical patch from bug #636627.

All that remains is the --skip-installer option.

Updated patch attached.

SR