Closed Bug 1232715 Opened 10 years ago Closed 10 years ago

Bootstrap ignores --no-interactive flag when using dnf groupinstall

Categories

(Firefox Build System :: General, defect)

All
Linux
defect
Not set
normal

Tracking

(firefox46 fixed)

RESOLVED FIXED
mozilla46
Tracking Status
firefox46 --- fixed

People

(Reporter: bmurray7jhu, Unassigned)

Details

Attachments

(1 file, 1 obsolete file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.80 Safari/537.36 Steps to reproduce: Run python/mozboot/bin/bootstrap.py --no-interactive Actual results: There is a a prompt when installing DNF groups Expected results: DNF groups should install without prompting
Summary: Bootstrap ignore --no-interactive flag when using dnf groupinstall → Bootstrap ignores --no-interactive flag when using dnf groupinstall
Attachment #8698506 - Attachment is obsolete: true
Comment on attachment 8698507 [details] [diff] [review] Bootstrap ignores --no-interactive flag when using dnf groupinstall ># HG changeset patch ># User Brian Murray <bmurray7jhu@gmail.com> ># Date 1450201360 28800 ># Tue Dec 15 09:42:40 2015 -0800 ># Node ID 5a98591a5b669fa3ceeb51cf9704bd40225bb151 ># Parent 8d017f2740c6ed7cba5c008ddccacfdb0333bd41 >Bug 1232715 - Bootstrap ignores --no-interactive flag when using dnf groupinstall > >diff --git a/python/mozboot/mozboot/base.py b/python/mozboot/mozboot/base.py >--- a/python/mozboot/mozboot/base.py >+++ b/python/mozboot/mozboot/base.py >@@ -170,16 +170,19 @@ class BaseBootstrapper(object): > > self.run_as_root(command) > > def dnf_groupinstall(self, *packages): > if self.which('dnf'): > command = ['dnf', 'groupinstall'] > else: > command = ['yum', 'groupinstall'] >+ >+ if self.no_interactive: >+ command.append('-y') > command.extend(packages) > > self.run_as_root(command) > > def dnf_update(self, *packages): > if self.which('dnf'): > command = ['dnf', 'update'] > else:
Attachment #8698507 - Attachment description: Bootstrap ignore --no-interactive flag when using dnf groupinstall → Bootstrap ignores --no-interactive flag when using dnf groupinstall
Attachment #8698507 - Flags: feedback?(gps)
Component: Untriaged → Build Config
OS: Unspecified → Linux
Hardware: Unspecified → All
Comment on attachment 8698507 [details] [diff] [review] Bootstrap ignores --no-interactive flag when using dnf groupinstall Review of attachment 8698507 [details] [diff] [review]: ----------------------------------------------------------------- Looks good. I'll land this for you. Thanks for the fix.
Attachment #8698507 - Flags: feedback?(gps) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/d68a410677b5c42274165d5ae062480bb933d0a7 Bug 1232715 - Bootstrap ignores --no-interactive flag when using dnf groupinstall; r=gps
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 46
[bugday-20160323] Status: RESOLVED,FIXED -> UNVERIFIED Comments: STR: Not clear. Developer specific testing Component: Name Firefox Version 46.0b9 Build ID 20160322075646 Update Channel beta User Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0 OS Windows 7 SP1 x86_64 Expected Results: Developer specific testing Actual Results: As expected
Component: Build Config → General
Product: Firefox → Firefox Build System
Target Milestone: Firefox 46 → mozilla46
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: