Bug 1275437 - Changed flags passed to pacman in Windows bootstrapper to be the --long-form instead of the single character flag. r?gps
This will make it easier to read for people who are not familiar with pacman.
MozReview-Commit-ID: BDzSV8GZ7er
--- a/python/mozboot/mozboot/windows.py
+++ b/python/mozboot/mozboot/windows.py
@@ -66,22 +66,24 @@ class WindowsBootstrapper(BaseBootstrapp
def _update_package_manager(self):
self.pacman_update()
def run(self, command):
subprocess.check_call(command, stdin=sys.stdin)
def pacman_update(self):
- command = ['pacman', '-S', '--refresh']
+ command = ['pacman', '--sync', '--refresh']
self.run(command)
def pacman_upgrade(self):
- command = ['pacman', '-Syu']
+ command = ['pacman', '--sync', '--refresh', '--sysupgrade']
self.run(command)
def pacman_install(self, *packages):
- command = ['pacman', '-S', '--needed']
+ command = ['pacman', '--sync', '--needed']
if self.no_interactive:
command.append('--noconfirm')
command.extend(packages)
self.run(command)
+
+