-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Conversation
ping @jfrazelle (saw you closed #20564 already 😇 ) |
oh, and @tianon may be interested as well 👍 |
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 |
There was a problem hiding this comment.
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?
(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>
208ee76
to
204c780
Compare
LGTM. @tianon ? |
Very nice, LGTM 👍 |
Always create apt-ftparchive.conf.
ok im going to try this :) |
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