Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
CDNClient: Cope with longer manifest descriptions for some depots

should fix most depot download scenarios, where for a while depot and
manifest flags needed to be provided manually. Now it should be enough
to provide -a <AppId> +/- -os linux64
  • Loading branch information
rfht committed Aug 2, 2023
1 parent 665802c commit 00038b5
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions games/py-steam/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ COMMENT = module for interacting with various Steam features
MODPY_EGG_VERSION = 1.4.4
DISTNAME = steam-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
REVISION = 0
CATEGORIES = games
HOMEPAGE = https://github.com/ValvePython/steam

Expand Down
19 changes: 19 additions & 0 deletions games/py-steam/patches/patch-steam_client_cdn_py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
backport https://github.com/ValvePython/steam/pull/437:
CDNClient: Cope with longer manifest descriptions for some depots

Index: steam/client/cdn.py
--- steam/client/cdn.py.orig
+++ steam/client/cdn.py
@@ -836,6 +836,12 @@ class CDNClient(object):
else:
manifest_gid = depot_info.get('manifests', {}).get(branch)

+ if isinstance(manifest_gid, dict):
+ # For some depots, Steam has started returning a dict
+ # {"public": {"gid": GID, "size": ..., "download": ...}, ...}
+ # instead of a simple map {"public": GID, ...}
+ manifest_gid = manifest_gid['gid']
+
if manifest_gid is not None:
tasks.append(
self.gpool.spawn(

0 comments on commit 00038b5

Please sign in to comment.