Bug 1220641 - Push to mirrors prefix is too greedy. r=rail, a=release-automation DONTBUILD
authorNick Thomas <nthomas@mozilla.com>
Tue, 10 Nov 2015 10:00:49 -0500
changeset 305467 d5b408ced8ce03964d3ee22d23f77f1306bbe4b9
parent 305466 5916c2111137afbb08437677537348cd73f9c727
child 305468 953d8110ed9d0aab346328ebcc4d9406394d8793
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrail, release-automation
bugs1220641
milestone44.0a2
Bug 1220641 - Push to mirrors prefix is too greedy. r=rail, a=release-automation DONTBUILD
testing/mozharness/scripts/release/antivirus.py
--- a/testing/mozharness/scripts/release/antivirus.py
+++ b/testing/mozharness/scripts/release/antivirus.py
@@ -162,17 +162,17 @@ class AntivirusScan(BaseScript, Virtuale
         def find_release_files():
             candidates_prefix = self._get_candidates_prefix()
             self.info("Getting key names from candidates")
             for key in bucket.list(prefix=candidates_prefix):
                 keyname = key.name
                 if self._matches_exclude(keyname):
                     self.debug("Excluding {}".format(keyname))
                 else:
-                    destination = self.dest_dir + keyname.replace(candidates_prefix, '')
+                    destination = os.path.join(self.dest_dir, keyname.replace(candidates_prefix, ''))
                     dest_dir = os.path.dirname(destination)
                     if not os.path.isdir(dest_dir):
                         os.makedirs(dest_dir)
                     yield (keyname, destination)
 
         pool = ThreadPool(self.config["download_parallelization"])
         pool.map(worker, find_release_files())