Bug 1290647 - FreeBSD bootstrap: Allow non-interactive install after bug 1151834. r=glandium, a=sylvestre
authorJan Beich <jbeich@FreeBSD.org>
Sat, 30 Jul 2016 06:09:54 +0000
changeset 349663 f6b3d411b56846cb084a3ae5d63220d71f2209db
parent 349662 672efbb3ea375636b36a74d15cf3763741e098bb
child 349664 7827bb5b1a728293031353f23db33e06f58887bd
push id1230
push userjlund@mozilla.com
push dateMon, 31 Oct 2016 18:13:35 +0000
treeherdermozilla-release@5e06e3766db2 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium, sylvestre
bugs1290647, 1151834
milestone50.0a2
Bug 1290647 - FreeBSD bootstrap: Allow non-interactive install after bug 1151834. r=glandium, a=sylvestre MozReview-Commit-ID: 36Yn6n5bOeQ
python/mozboot/mozboot/freebsd.py
--- a/python/mozboot/mozboot/freebsd.py
+++ b/python/mozboot/mozboot/freebsd.py
@@ -36,16 +36,18 @@ class FreeBSDBootstrapper(BaseBootstrapp
 
         # gcc in base is too old
         if self.flavor == 'freebsd' and self.version < 9:
             self.browser_packages.append('gcc')
 
     def pkg_install(self, *packages):
         if self.which('pkg'):
             command = ['pkg', 'install']
+            if self.no_interactive:
+                command.append('-y')
         else:
             command = ['pkg_add', '-Fr']
 
         command.extend(packages)
         self.run_as_root(command)
 
     def install_system_packages(self):
         self.pkg_install(*self.packages)