openflights-data-git
The package downloads data files and licenses from non-whitelisted but project-owned hosts (github.com, openflights.org); these are non-executable data assets, so the worst case of a swapped source is data tampering, not code execution.
Triggered rules
llm_review
The static rules flagged this MEDIUM, but an AI model (qwen/qwen3-235b-a22b-07-25) reviewed the full PKGBUILD and judged it LOW (confidence 90%): The package downloads data files and licenses from non-whitelisted but project-owned hosts (github.com, openflights.org); these are non-executable data assets, so the worst case of a swapped source is data tampering, not code execution.
1 higher static finding superseded - not the current verdict (shown for transparency)
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:14
url="http://openflights.org/data" -
PKGBUILD:43
"License_ODbL_1.0.html::http://opendatacommons.org/licenses/odbl/1.0/"
PKGBUILD
2 offending line(s) highlighted# Maintainer: dreieck
# PKGBUILD last time manually edited: At least on 2025-09-08.
_gitname=openflights
_pkgname="${_gitname}-data"
pkgname="${_pkgname}-git"
epoch=0
_pkgver=latest
pkgver=r35.20200131
pkgrel=2
pkgdesc="Airport, train station, ferry terminal, airline and flight routes data as CSV files to be used e.g. in GIS-applications."
arch=(any)
url="http://openflights.org/data"
license=(
'ODbL-1.0'
'LicenseRef-DbCL-1.0'
)
groups=(
"openflights"
)
depends=()
makedepends=(
'git'
)
replaces=(
"${_pkgname}-latest"
)
optdepends=()
provides=(
"${_pkgname}=${pkgver}"
)
conflicts=(
"${_pkgname}"
)
source=(
"${_gitname}::git+https://github.com/jpatokal/openflights.git"
"info.html::http://openflights.org/data"
"License_ODbL_1.0.html::http://opendatacommons.org/licenses/odbl/1.0/"
"License_DbCL_1.0.html::http://opendatacommons.org/licenses/dbcl/1.0/"
)
sha256sums=(
'SKIP'
'SKIP'
'SKIP'
'SKIP'
)
prepare() {
cd "${srcdir}/${_gitname}"
git log data/*.dat > git.log
echo "${url}" > "info.url"
}
pkgver() {
cd "${srcdir}/${_gitname}"
_rev="$(git rev-list --count HEAD data/*.dat)"
_date="$(git log -1 --date=format:"%Y%m%d" --format="%ad" data/*.dat)"
if [ -z "${_rev}" ]; then
error "Could not determine git commit count of 'data/*.dat'."
return 1
else
printf '%s' "r${_rev}.${_date}"
fi
}
package() {
_instdirbase='/opt/openflights-data'
_instdir="${pkgdir}/${_instdirbase}"
_docdirbase="/usr/share/doc/${_pkgname}"
_docdir="${pkgdir}/${_docdirbase}"
_licensedirbase="/usr/share/licenses/${pkgname}"
_licensedir="${pkgdir}/${_licensedirbase}"
cd "${srcdir}/${_gitname}"
# "https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports.dat"
# "https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports-extended.dat"
# "https://raw.githubusercontent.com/jpatokal/openflights/master/data/airports-dafif.dat"
# "https://raw.githubusercontent.com/jpatokal/openflights/master/data/airlines.dat"
# "https://raw.githubusercontent.com/jpatokal/openflights/master/data/routes.dat"
# "https://raw.githubusercontent.com/jpatokal/openflights/master/data/countries.dat"
# "https://raw.githubusercontent.com/jpatokal/openflights/master/data/locales.dat"
install -Dvm644 -t "${_instdir}" "data"/*.dat
install -Dvm644 -t "${_docdir}" "${srcdir}/info.html"
install -Dvm644 -t "${_docdir}" git.log info.url
install -Dvm644 -t "${_licensedir}" "${srcdir}"/License_{ODbL,DbCL}_1.0.html
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-09-17 00:27:14 | Low | 2 |
| 2026-09-16 00:03:17 | Low | 2 |
| 2026-09-15 00:25:31 | Low | 2 |
| 2026-09-14 00:27:57 | Low | 2 |
| 2026-09-13 00:19:54 | Low | 2 |
| 2026-09-12 00:25:17 | Low | 2 |
| 2026-09-11 00:19:22 | Low | 2 |
| 2026-09-10 00:22:44 | Low | 2 |
| 2026-09-09 00:04:09 | Low | 2 |
| 2026-09-08 00:18:08 | Low | 2 |
| 2026-09-07 00:30:15 | Low | 2 |
| 2026-09-06 00:17:06 | Low | 2 |
| 2026-09-05 00:16:27 | Low | 2 |
| 2026-09-04 00:03:13 | Low | 2 |
| 2026-09-03 00:15:47 | Low | 2 |
| 2026-09-02 00:02:31 | Low | 2 |
| 2026-09-01 00:11:19 | Low | 2 |
| 2026-08-31 00:19:57 | Low | 2 |
| 2026-08-30 00:04:14 | Low | 2 |
| 2026-08-29 00:29:17 | Low | 2 |