Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for incorrect marking EOL if connection fails #2

Merged
merged 3 commits into from
Nov 1, 2017

Conversation

tfogwill
Copy link
Contributor

@tfogwill tfogwill commented Sep 5, 2017

This fixes the bug that incorrectly assumes EOL if connection fails.
See #1

This fixes the bug that incorrectly assumes EOL if connection fails.
See xolox#1
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.5%) to 58.349% when pulling 3f7d342 on tfogwill:bug_1 into 8d183fc on xolox:master.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) to 59.004% when pulling d07a9f7 on tfogwill:bug_1 into 8d183fc on xolox:master.

@coveralls
Copy link

coveralls commented Sep 5, 2017

Coverage Status

Coverage increased (+0.3%) to 59.238% when pulling 1ec411e on tfogwill:bug_1 into 8d183fc on xolox:master.

xolox added a commit that referenced this pull request Nov 1, 2017
This change set builds on top of edcf561 to enhance validate_mirror()
by making a distinction between a confirmed HTTP 404 response versus
other error conditions which may be of a more transient nature.

The goal of this change is to preserve the semantics requested in
issue #1 and implemented in pull request #2 without needing the
additional HTTP request performed by can_connect_to_mirror().

Because validate_mirror() previously returned a boolean but now returns
an enumeration member this change is technically backwards incompatible,
then again validate_mirror() isn't specifically intended for callers
because it concerns internal logic of apt-mirror-updater. When I publish
this I will nevertheless bump the major version number.
xolox added a commit that referenced this pull request Nov 1, 2017
Recently I ran into the issue that the logic to check whether a release
is EOL (that works by checking if the security mirror serves a
Release.gpg file for the release) failed on me.

More specifically the following URL still exists at the time of writing
(2017-11-01) even though Ubuntu 12.04 went EOL back in April:

http://security.ubuntu.com/ubuntu/dists/precise/Release.gpg

At the same time issue #1 and pull request #2 were also indications that
the EOL detection was fragile and error prone. This potential fragility
had bugged me ever since publishing apt-mirror-updater and this week I
finally finished a more robust and deterministic EOL detection scheme.
xolox added a commit that referenced this pull request Nov 1, 2017
This release includes pull requests #2
and #4 and fixes issues #1 and #3.
@xolox xolox merged commit 1ec411e into xolox:master Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants