Skip to content

Commit 00038b5

Browse files
committed
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
1 parent 665802c commit 00038b5

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

games/py-steam/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ COMMENT = module for interacting with various Steam features
33
MODPY_EGG_VERSION = 1.4.4
44
DISTNAME = steam-${MODPY_EGG_VERSION}
55
PKGNAME = py-${DISTNAME}
6+
REVISION = 0
67
CATEGORIES = games
78
HOMEPAGE = https://github.com/ValvePython/steam
89

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
backport https://github.com/ValvePython/steam/pull/437:
2+
CDNClient: Cope with longer manifest descriptions for some depots
3+
4+
Index: steam/client/cdn.py
5+
--- steam/client/cdn.py.orig
6+
+++ steam/client/cdn.py
7+
@@ -836,6 +836,12 @@ class CDNClient(object):
8+
else:
9+
manifest_gid = depot_info.get('manifests', {}).get(branch)
10+
11+
+ if isinstance(manifest_gid, dict):
12+
+ # For some depots, Steam has started returning a dict
13+
+ # {"public": {"gid": GID, "size": ..., "download": ...}, ...}
14+
+ # instead of a simple map {"public": GID, ...}
15+
+ manifest_gid = manifest_gid['gid']
16+
+
17+
if manifest_gid is not None:
18+
tasks.append(
19+
self.gpool.spawn(

0 commit comments

Comments
 (0)