This is an automated email from the ASF dual-hosted git repository.
arm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
The following commit(s) were added to refs/heads/main by this push:
new dcd2a63 #216 - Make sure staging "upgrades" still set pending
dcd2a63 is described below
commit dcd2a632cc0247c466f6b5f5636277d96fe32c91
Author: Alastair McFarlane <[email protected]>
AuthorDate: Fri Jan 30 15:17:44 2026 +0000
#216 - Make sure staging "upgrades" still set pending
---
atr/storage/writers/distributions.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/atr/storage/writers/distributions.py
b/atr/storage/writers/distributions.py
index de2a631..34a40c9 100644
--- a/atr/storage/writers/distributions.py
+++ b/atr/storage/writers/distributions.py
@@ -174,6 +174,7 @@ class CommitteeMember(CommitteeParticipant):
owner_namespace,
package,
version,
+ pending,
upload_date,
api_url,
web_url,
@@ -221,8 +222,7 @@ class CommitteeMember(CommitteeParticipant):
api_url=None,
web_url=None,
)
- if added:
- return dist, added, None
+ return dist, added, None
raise storage.AccessError(f"Failed to get API response from
distribution platform: {error}")
upload_date = distribution.distribution_upload_date(dd.platform,
result, dd.version)
if upload_date is None:
@@ -255,6 +255,7 @@ class CommitteeMember(CommitteeParticipant):
owner_namespace: str | None,
package: str,
version: str,
+ pending: bool,
upload_date: datetime.datetime | None,
api_url: str | None,
web_url: str | None,
@@ -269,6 +270,7 @@ class CommitteeMember(CommitteeParticipant):
).demand(RuntimeError(f"Distribution {tag} not found"))
if existing.staging:
existing.staging = False
+ existing.pending = pending
existing.upload_date = upload_date
existing.api_url = api_url
existing.web_url = web_url
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]