mirror of
https://github.com/ben-grande/qusal.git
synced 2024-10-01 02:35:49 -04:00
ci: reproducible license sort
This commit is contained in:
parent
49fb82a177
commit
6eb13fa07f
6
.github/workflows/main.yaml
vendored
6
.github/workflows/main.yaml
vendored
@ -40,12 +40,6 @@ jobs:
|
|||||||
- name: Install OS packages
|
- name: Install OS packages
|
||||||
# yamllint disable-line rule:line-length
|
# yamllint disable-line rule:line-length
|
||||||
run: sudo apt-get install -y $(cat dependencies/debian.txt)
|
run: sudo apt-get install -y $(cat dependencies/debian.txt)
|
||||||
- name: Show how licenses are rendered order
|
|
||||||
run: |
|
|
||||||
reuse --root salt/dom0 lint || true
|
|
||||||
./scripts/spec-get.sh dom0 license
|
|
||||||
./scripts/spec-get.sh dom0 license_csv
|
|
||||||
./scripts/spec-gen.sh test dom0
|
|
||||||
- name: Remove externally managed python environment flag
|
- name: Remove externally managed python environment flag
|
||||||
# yamllint disable-line rule:line-length
|
# yamllint disable-line rule:line-length
|
||||||
run: sudo dpkg-divert --rename --add /usr/lib/$(py3versions -d)/EXTERNALLY-MANAGED
|
run: sudo dpkg-divert --rename --add /usr/lib/$(py3versions -d)/EXTERNALLY-MANAGED
|
||||||
|
@ -88,8 +88,8 @@ fi
|
|||||||
|
|
||||||
if test "${key}" = "license" || test "${key}" = "license_csv"; then
|
if test "${key}" = "license" || test "${key}" = "license_csv"; then
|
||||||
license_csv="$(reuse --root "${project_dir}" lint |
|
license_csv="$(reuse --root "${project_dir}" lint |
|
||||||
awk -F ':' '/^\* Used licenses:/{print $2}' | tr " " "\n" | sort -d |
|
awk -F ':' '/^\* Used licenses:/{print $2}' | tr " " "\n" | tr -d "," |
|
||||||
tr -s "\n" " " | tr -d " ")"
|
sort -d | tr -s "\n" "," | sed "s/^\,//;s/\,$//")"
|
||||||
license="$(echo "${license_csv}" | sed "s/\,/ AND /g")"
|
license="$(echo "${license_csv}" | sed "s/\,/ AND /g")"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user