AUR AI Reviewer

Review Results

Version #3128 of humanity-icon-theme · commit 5e56a1a78d9b · status Reviewed

Risk 0/5 · Safe PKGBUILD
Result #6335

Comment

The change only adds timeout/retry flags to an existing HTTPS Launchpad API call in latestver(). It does not introduce new sources, shell execution, privilege changes, or packaging/install-time behavior. The network access was already present for version checking; this merely makes it more resilient. No security-relevant regression is evident in the provided diff.

@@ -20,7 +20,12 @@ latestver() {
     # icon payload identical) and pacman sorts it OLDER than the base version;
     # strip it. A new real version published only as buildN will surface
     # loudly as asset-missing if its bare tarball doesn't exist.
-    curl -fsSL 'https://api.launchpad.net/1.0/ubuntu/+archive/primary?ws.op=getPublishedSources&source_name=humanity-icon-theme&exact_match=true&status=Published' |
+    # Launchpad answers in under a second when healthy but stalls or resets the
+    # connection under load, so each attempt is bounded and retried: three
+    # 20-second attempts stay under the version check's own 90-second cap and
+    # fail with curl's error, which names the cause, instead of a bare timeout.
+    curl -fsSL --max-time 20 --retry 2 --retry-delay 2 --retry-all-errors \
+        'https://api.launchpad.net/1.0/ubuntu/+archive/primary?ws.op=getPublishedSources&source_name=humanity-icon-theme&exact_match=true&status=Published' |
         jq -r '.entries[].source_package_version' | sed 's/build[0-9]*$//' |
         sort -V | tail -1
 }