-
Notifications
You must be signed in to change notification settings - Fork 179
Add qgis-deb.sh to mirror QGIS apt repositories via apt-sync.py #202
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
base: master
Are you sure you want to change the base?
Changes from all commits
3a75aea
63a9de6
b39a677
f6fed2c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| #!/bin/bash | ||
| set -e | ||
| set -o pipefail | ||
|
|
||
| _here=$(dirname "$(realpath "$0")") | ||
| apt_sync="${_here}/apt-sync.py" | ||
|
|
||
| BASE_URL="${TUNASYNC_UPSTREAM_URL:-"https://qgis.org"}" | ||
| WORKDIR="${TUNASYNC_WORKING_DIR}" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Following the convention used by other scripts in this repo (chef.sh/cvmfs.sh/termux.sh) — they all dereference |
||
|
|
||
| REPO_SIZE_FILE=$(mktemp -t qgis-deb-reposize.XXXXXX) | ||
| export REPO_SIZE_FILE | ||
| trap 'rm -f "$REPO_SIZE_FILE"' EXIT | ||
|
|
||
| DEB_CODENAMES="bullseye,bookworm,trixie,jammy,noble,resolute,plucky,questing,focal,xenial,bionic" | ||
| DEB_ARCHES="amd64,i386" | ||
|
|
||
| UBUNTUGIS_CODENAMES="jammy,noble,bionic,focal,xenial" | ||
| UBUNTUGIS_ARCHES="amd64" | ||
|
|
||
| "$apt_sync" --delete "${BASE_URL}/debian" "$DEB_CODENAMES" main "$DEB_ARCHES" "${WORKDIR}/debian" | ||
| echo "debian finished" | ||
|
|
||
| "$apt_sync" --delete "${BASE_URL}/debian-ltr" "$DEB_CODENAMES" main "$DEB_ARCHES" "${WORKDIR}/debian-ltr" | ||
| echo "debian-ltr finished" | ||
|
|
||
| "$apt_sync" --delete "${BASE_URL}/ubuntu" "$DEB_CODENAMES" main "$DEB_ARCHES" "${WORKDIR}/ubuntu" | ||
|
Comment on lines
+15
to
+27
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is intentional. The QGIS S3 backend uses the same
Comment on lines
+15
to
+27
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is intentional. The QGIS S3 backend uses the same |
||
| echo "ubuntu finished" | ||
|
|
||
| "$apt_sync" --delete "${BASE_URL}/ubuntugis" "$UBUNTUGIS_CODENAMES" main "$UBUNTUGIS_ARCHES" "${WORKDIR}/ubuntugis" | ||
| echo "ubuntugis finished" | ||
|
|
||
| "$apt_sync" --delete "${BASE_URL}/ubuntugis-ltr" "$UBUNTUGIS_CODENAMES" main "$UBUNTUGIS_ARCHES" "${WORKDIR}/ubuntugis-ltr" | ||
|
Comment on lines
+21
to
+33
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Following the convention used by other scripts in this repo (chef.sh/cvmfs.sh/termux.sh) — they all dereference |
||
| echo "ubuntugis-ltr finished" | ||
|
|
||
| # ubuntu-ltr is a symlink to debian-ltr (identical content) | ||
| ln -sfn debian-ltr "${WORKDIR}/ubuntu-ltr" | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Following the convention used by other scripts in this repo (chef.sh/cvmfs.sh/termux.sh) — they all dereference |
||
| echo "ubuntu-ltr symlink created" | ||
|
|
||
| "${_here}/helpers/size-sum.sh" "$REPO_SIZE_FILE" --rm | ||
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.
Now used:
_hereis referenced for${_here}/apt-sync.pyand${_here}/helpers/size-sum.sh(matching chef.sh/cvmfs.sh/bazel-apt.sh convention).