Bug 1466222 - query_apkfile_path is no longer used, now that we've dropped balrog logic. r=catlee
☠☠ backed out by ea2226175bc8 ☠ ☠
authorJustin Wood <Callek@gmail.com>
Sun, 03 Jun 2018 16:22:25 -0400
changeset 421228 b58c16c87f123563ebe706a3f6ce188ff4d68f43
parent 421227 070e3b0143099239610663bb142850e46bda536f
child 421229 d7ea3bf4e138574174aacb6d22804b621459b02d
push id34090
push userbtara@mozilla.com
push dateTue, 05 Jun 2018 09:30:51 +0000
treeherdermozilla-central@a358755643e9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscatlee
bugs1466222
milestone62.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1466222 - query_apkfile_path is no longer used, now that we've dropped balrog logic. r=catlee for "Cleanup l10n mozharness config files." Differential Revision: https://phabricator.services.mozilla.com/D1523
testing/mozharness/scripts/mobile_l10n.py
--- a/testing/mozharness/scripts/mobile_l10n.py
+++ b/testing/mozharness/scripts/mobile_l10n.py
@@ -424,32 +424,16 @@ class MobileSingleLocale(LocalesMixin, T
                     glob_extension = f[f.rfind('.'):]
                     self.move(os.path.join(f),
                               os.path.join(target_path, "target%s" % glob_extension))
                 self.log("Converted uploads for %s to simple names" % locale)
             success_count += 1
         self.summarize_success_count(success_count, total_count,
                                      message="Make Upload for %d of %d locales successful.")
 
-    def query_apkfile_path(self, locale):
-
-        dirs = self.query_abs_dirs()
-        apkdir = os.path.join(dirs['abs_objdir'], 'dist')
-        r = r"(\.)" + re.escape(locale) + r"(\.*)"
-
-        apks = []
-        for f in os.listdir(apkdir):
-            if f.endswith(".apk") and re.search(r, f):
-                apks.append(f)
-        if len(apks) == 0:
-            self.fatal("Found no apks files in %s, don't know what to do:\n%s" %
-                       (apkdir, apks), exit_code=1)
-
-        return os.path.join(apkdir, apks[0])
-
     def query_is_release_or_beta(self):
 
         return bool(self.config.get("is_release_or_beta"))
 
 
 # main {{{1
 if __name__ == '__main__':
     single_locale = MobileSingleLocale()