tortoisehg

LOW
maintainer Misery 123 votes scanned 2026-09-17 00:27:14.276658
View on AUR
Why flagged

The source URLs, while on non-standard hosts, point to official project release and development infrastructure for TortoiseHg and Mercurial, making them legitimate sources for building the package; the worst case of a swapped source would be a compromised build, but the hosts are project-affiliated and not arbitrary untrusted servers.

Triggered rules

Low AI review llm_review

An AI model (qwen/qwen3-235b-a22b-07-25) reviewed this and agrees it is LOW (confidence 95%): The source URLs, while on non-standard hosts, point to official project release and development infrastructure for TortoiseHg and Mercurial, making them legitimate sources for building the package; the worst case of a swapped source would be a compromised build, but the hosts are project-affiliated and not arbitrary untrusted servers.

1 higher static finding superseded - not the current verdict (shown for transparency)
Medium source=() URL on a non-standard host 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:17 source=("https://www.mercurial-scm.org/release/tortoisehg/targz/tortoisehg-$pkgver.tar.gz"
  • PKGBUILD:18 "https://foss.heptapod.net/mercurial/tortoisehg/thg/-/commit/ff01aa72ea781c0dc689a9fa82931b15afccedb8.diff"

PKGBUILD

2 offending line(s) highlighted
1# Contributor: Bernhard Walle <bernhard@bwalle.de>
2# Contributor: Clovis Fabricio <arch.nosklo@0sg.net>
3# Contributor: Christopher Krooß <c.krooss@gmail.com>
4# Maintainer: Andre Klitzing <aklitzing () gmail () com>
5# AUR Category: devel
6pkgname=tortoisehg
7pkgver=7.2.2
8pkgrel=2
9pkgdesc="Graphical tools for Mercurial"
10arch=('any')
11url="https://foss.heptapod.net/mercurial/tortoisehg/thg"
12license=("GPL")
13makedepends=(python-build python-installer python-wheel python-setuptools)
14depends=('python' 'mercurial>=6.0' 'python-qscintilla-qt6' 'python-iniparse' 'qt6-svg' 'python-pyqt6')
15optdepends=('python-pygments: syntax highlighting'
16 'python-nautilus: Python binding for Nautilus components')
17source=("https://www.mercurial-scm.org/release/tortoisehg/targz/tortoisehg-$pkgver.tar.gz"
18 "https://foss.heptapod.net/mercurial/tortoisehg/thg/-/commit/ff01aa72ea781c0dc689a9fa82931b15afccedb8.diff"
19 )
20
21prepare() {
22 cd "${srcdir}/${pkgname}-${pkgver}"
23 patch -p1 -i "$srcdir"/ff01aa72ea781c0dc689a9fa82931b15afccedb8.diff
24}
25
26build() {
27 cd "${srcdir}/${pkgname}-${pkgver}"
28 python -m build --wheel --no-isolation
29}
30
31package() {
32 cd "${srcdir}/${pkgname}-${pkgver}"
33 python -m installer --destdir="$pkgdir" dist/*.whl
34 install -Dm 644 "contrib/mergetools.rc" "${pkgdir}/etc/mercurial/hgrc.d/thgmergetools.rc"
35 install -Dm 644 "contrib/thg.desktop" "${pkgdir}/usr/share/applications/thg.desktop"
36 install -Dm 644 "icons/svg/thg_logo.svg" "${pkgdir}/usr/share/pixmaps/thg_logo.svg"
37
38 # already provided by hg
39 cd "$pkgdir/usr/lib/"
40 rm -f python*/site-packages/hgext3rd/__init__.py
41 rm -f python*/site-packages/hgext3rd/__init__.pyc
42 rm -rf python*/site-packages/hgext3rd/__pycache__/
43}
44
45sha256sums=('2812d76e2436a7e9af30cd3f536d844304a3d8d20eda2daf234661985f207383'
46 'afb421b452fc7b6aad6ffea4da4f51d29f1ffe5a86c3fa1e18e25f2830e3ae95')
47

Scan history

Scanned at (UTC)SeverityRules
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

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion