aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo
diff options
context:
space:
mode:
Diffstat (limited to 'python/servo')
-rw-r--r--python/servo/package_commands.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py
index 90cba92cfa1..2f43332539b 100644
--- a/python/servo/package_commands.py
+++ b/python/servo/package_commands.py
@@ -36,7 +36,6 @@ from servo.command_base import (
BuildNotFound,
cd,
CommandBase,
- is_macosx,
is_windows,
)
from servo.util import delete, get_target_dir
@@ -179,7 +178,7 @@ class PackageCommands(CommandBase):
except subprocess.CalledProcessError as e:
print("Packaging Android exited with return value %d" % e.returncode)
return e.returncode
- elif is_macosx():
+ elif 'darwin' in self.target.triple():
print("Creating Servo.app")
dir_to_dmg = path.join(target_dir, 'dmg')
dir_to_app = path.join(dir_to_dmg, 'Servo.app')
@@ -248,7 +247,7 @@ class PackageCommands(CommandBase):
delete(dir_to_dmg)
print("Packaged Servo into " + dmg_path)
- elif is_windows():
+ elif 'windows' in self.target.triple():
dir_to_msi = path.join(target_dir, 'msi')
if path.exists(dir_to_msi):
print("Cleaning up from previous packaging")