aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/package_commands.py
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-11-04 04:04:34 -0500
committerGitHub <noreply@github.com>2016-11-04 04:04:34 -0500
commit4c5d84d81a45a2f85ceca88ca69374b464722cd1 (patch)
treef0a0c966bdbd18e049a6f8bd8bc5ce61f95a310b /python/servo/package_commands.py
parent651e40f33eff08f836b76024b77bddc77089490c (diff)
parentd302cf23bc29688dc7e773059de90e62daa7d603 (diff)
downloadservo-4c5d84d81a45a2f85ceca88ca69374b464722cd1.tar.gz
servo-4c5d84d81a45a2f85ceca88ca69374b464722cd1.zip
Auto merge of #14058 - rjgoldsborough:make-upload-nightly-put-datetimes-12128, r=Wafflespeanut
moving datetimestamping responsibilities from mach package to CI upload, swaps semicolons for dashes <!-- Please describe your changes on the following line: --> This fixes #12128 by moving the datetimestamping responsibility from the python packaging script to the CI build shell script. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #12128 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because they are part of CI build <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14058) <!-- Reviewable:end -->
Diffstat (limited to 'python/servo/package_commands.py')
-rw-r--r--python/servo/package_commands.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py
index 010b8dfb476..103238a6e55 100644
--- a/python/servo/package_commands.py
+++ b/python/servo/package_commands.py
@@ -19,7 +19,6 @@ import subprocess
import mako.template
from mach.registrar import Registrar
-from datetime import datetime
from mach.decorators import (
CommandArgument,
@@ -155,7 +154,6 @@ class PackageCommands(CommandBase):
dir_to_build = '/'.join(binary_path.split('/')[:-1])
dir_to_root = '/'.join(binary_path.split('/')[:-3])
- now = datetime.utcnow()
print("Creating Servo.app")
dir_to_dmg = '/'.join(binary_path.split('/')[:-2]) + '/dmg'
@@ -212,9 +210,7 @@ class PackageCommands(CommandBase):
print("Creating dmg")
os.symlink('/Applications', dir_to_dmg + '/Applications')
dmg_path = '/'.join(dir_to_build.split('/')[:-1]) + '/'
- time = now.replace(microsecond=0).isoformat()
- time = time.replace(':', '-')
- dmg_path += time + "-servo-tech-demo.dmg"
+ dmg_path += "servo-tech-demo.dmg"
try:
subprocess.check_call(['hdiutil', 'create', '-volname', 'Servo', dmg_path, '-srcfolder', dir_to_dmg])
except subprocess.CalledProcessError as e:
@@ -229,7 +225,7 @@ class PackageCommands(CommandBase):
dir_to_tar = '/'.join(dir_to_build.split('/')[:-1]) + '/brew/'
if not path.exists(dir_to_tar):
os.makedirs(dir_to_tar)
- tar_path = dir_to_tar + now.strftime("servo-%Y-%m-%d.tar.gz")
+ tar_path = dir_to_tar + "servo.tar.gz"
if path.exists(dir_to_brew):
print("Cleaning up from previous packaging")
delete(dir_to_brew)
@@ -316,9 +312,7 @@ class PackageCommands(CommandBase):
os.close(runservo)
print("Creating tarball")
- time = datetime.utcnow().replace(microsecond=0).isoformat()
- time = time.replace(':', "-")
- tar_path = path.join(self.get_target_dir(), time + '-servo-tech-demo.tar.gz')
+ tar_path = path.join(self.get_target_dir(), 'servo-tech-demo.tar.gz')
archive_deterministically(dir_to_temp, tar_path, prepend_path='servo/')