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

Always create apt-ftparchive.conf. #20636

Merged
merged 1 commit into from
Feb 26, 2016

Conversation

anusha-ragunathan
Copy link
Contributor

Fixes #20564

The Releases file(s) and other bits for EOL-ed distros such as Ubuntu
Vivid should remain untouched when we are releasing debs.

However, few files in https://apt.dockerproject.org/repo/dists/ubuntu-vivid/
were being updated for the docker 1.10 release including the Release files.
This is due to apt-ftparchive generating index files for vivid as well,
due to the stale apt-ftparchive.conf

This change removes any config files to avoid stale configs and always
creates config using suites in contrib/reprepro/suites.sh.

Signed-off-by: Anusha Ragunathan anusha@docker.com

@thaJeztah
Copy link
Member

ping @jfrazelle (saw you closed #20564 already 😇 )

@thaJeztah
Copy link
Member

oh, and @tianon may be interested as well 👍

@anusha-ragunathan
Copy link
Contributor Author

Clarification: This wouldnt fix #20564, since we have already overwritten the Releases files for 1.9.1 vivid. It would prevent such issues on EOL-ed distros from happening again.

# from EOL-ed distros.
if [ -f "$APTDIR/conf/apt-ftparchive.conf" ]; then
rm "$APTDIR/conf/apt-ftparchive.conf"
fi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why explicitly remove and not just delete the if letting cat <<-EOF > "$APTDIR/conf/apt-ftparchive.conf" just overwrite?

@tianon
Copy link
Member

tianon commented Feb 23, 2016

(fyi https://github.com/docker/docker/pull/20636/files?w=1 is a much easier link to review here 👍 😄)

The Releases file(s) and other bits for EOL-ed distros such as Ubuntu
Vivid should remain untouched when we are releasing debs.

However, few files in https://apt.dockerproject.org/repo/dists/ubuntu-vivid/
were being updated for the docker 1.10 release including the Release files.
This is due to apt-ftparchive generating index files for vivid as well,
due to the stale apt-ftparchive.conf

This change always creates config using suites in contrib/reprepro/suites.sh.

Signed-off-by: Anusha Ragunathan <anusha@docker.com>
@calavera
Copy link
Contributor

LGTM.

@tianon ?

@tianon
Copy link
Member

tianon commented Feb 26, 2016

Very nice, LGTM 👍

tianon added a commit that referenced this pull request Feb 26, 2016
@tianon tianon merged commit 5bfaab9 into moby:master Feb 26, 2016
@jessfraz
Copy link
Contributor

jessfraz commented Mar 1, 2016

ok im going to try this :)

@jessfraz jessfraz added this to the 1.10.3 milestone Mar 2, 2016
@tiborvass tiborvass mentioned this pull request Mar 7, 2016
@anusha-ragunathan anusha-ragunathan deleted the apt-ftparchive branch April 7, 2016 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants