Put .deb file in root of APT repo #3202
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Problem
The repo from #3197 is closer to working after #3201, but still has some issues, including this when attempting to install ckan:
Cause
The
deb/dists/nightly/main/binary-all/Packages.gz
file contains:... which I thought from the documentation would be interpreted relative to that file's location to produce
deb/dists/nightly/main/binary-all/./ckan_1.29.1_all.deb
, similar to how web relative URLs normally work. Rather it looks like that path is appended to the root path of the repo, which is not where our .deb file currently is.Changes
Now we put the .deb file in
/deb/
. To make this work, the two S3 sync commands are now:_build/deb/apt-repo-root
into/deb/
, which will contain just the .deb file_build/deb/apt-repo-dist
into/deb/dists/stable/
or/deb/dists/nightly/
, which will contain everything elseThe Makefile is adjusted to generate those folders accordingly.
Note, there are still other issues relating to signatures and architectures. Those will be addressed in future changes and are not attempted to be solved here.