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 296696 9669bc030ba7
parent 296695 d8c7509ddad0
child 296697 842a741af958
push id5294
push userraliiev@mozilla.com
push date2015-11-11 15:41 +0000
treeherdermozilla-beta@9669bc030ba7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrail, release-automation
bugs1220641
milestone43.0
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())