@@ -81,6 +81,8 @@ def get_latest_package(self):
8181 targetflavor = 'mainline'
8282 elif self .clientType == 'mop' :
8383 targetflavor = 'mists'
84+ elif self .clientType == 'bc' :
85+ targetflavor = 'bcc'
8486 else :
8587 targetflavor = self .clientType
8688 for release in self .metadata ['releases' ]:
@@ -109,6 +111,7 @@ def get_latest_package_nometa(self):
109111 latest = None
110112 latestclassic = None
111113 latestmop = None
114+ latestbc = None
112115 for release in self .payloads [self .releaseDepth ]['assets' ]:
113116 if release ['name' ] and release ['name' ].endswith ('.zip' ) and '-nolib' not in release ['name' ] \
114117 and release ['content_type' ] in ['application/x-zip-compressed' , 'application/zip' , 'raw' ]:
@@ -119,14 +122,19 @@ def get_latest_package_nometa(self):
119122 latestclassic = release ['url' ]
120123 elif not latestmop and release ['name' ].endswith ('-mists.zip' ):
121124 latestmop = release ['url' ]
125+ elif not latestbc and release ['name' ].endswith ('-bcc.zip' ):
126+ latestbc = release ['url' ]
122127 if (self .clientType == 'retail' and latest ) \
123128 or (self .clientType == 'classic' and latest and not latestclassic ) \
124- or (self .clientType == 'mop' and latest and not latestmop ):
129+ or (self .clientType == 'mop' and latest and not latestmop ) \
130+ or (self .clientType == 'bc' and latest and not latestbc ):
125131 self .downloadUrl = latest
126132 elif self .clientType == 'classic' and latestclassic :
127133 self .downloadUrl = latestclassic
128134 elif self .clientType == 'mop' and latestmop :
129135 self .downloadUrl = latestmop
136+ elif self .clientType == 'bc' and latestbc :
137+ self .downloadUrl = latestbc
130138 else :
131139 self .releaseDepth += 1
132140 self .parse ()
0 commit comments