Bug 14565 - gurpmi --auto option no longer works
Summary: gurpmi --auto option no longer works
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Thierry Vignaud
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-15 17:02 CET by Martin Whitaker
Modified: 2014-11-25 10:53 CET (History)
0 users

See Also:
Source RPM: urpmi-8.01-2.mga5.src.rpm
CVE:
Status comment:


Attachments

Description Martin Whitaker 2014-11-15 17:02:28 CET
The --auto option is ignored by gurpmi. This can cause the user to be prompted twice to confirm whether a package should be installed (e.g. when drakclock installs the chrony package).

The change that caused this bug is that /usr/bin/gurpmi now uses the "standalone" package, which parses the command line arguments and removes options it recognises, including the --auto option.

Reproducible: 

Steps to Reproduce:
Comment 1 Martin Whitaker 2014-11-15 18:57:15 CET
To reproduce:

In terminal as root type

  gurpmi --auto chrony

In M4 this immediately starts installing the chrony package. In M5b1 this brings up a popup window asking you to confirm you want to install the chrony package (as if you had not specified the --auto option).
David Walser 2014-11-15 19:14:48 CET

Assignee: bugsquad => thierry.vignaud

Thierry Vignaud 2014-11-16 17:59:29 CET

Status: NEW => ASSIGNED

Comment 2 Mageia Robot 2014-11-25 07:46:15 CET
commit 3933655d73e13c0c4f3e304d80a6da86bce5d903
Author: Thierry Vignaud <thierry.vignaud@...>
Date:   Tue Nov 25 07:39:40 2014 +0100

    split drakbug stuff in its own module (mga#14565)
    
    rationale: @ARGV handling in standalone breaks gurpmi --auto
---
 Commit Link:
   http://gitweb.mageia.org/software/drakx/commit/?id=3933655d73e13c0c4f3e304d80a6da86bce5d903
Comment 3 Mageia Robot 2014-11-25 07:47:51 CET
commit 13217bb974d4df92858e5b1584979b5df5bcf2b9
Author: Thierry Vignaud <thierry.vignaud@...>
Date:   Tue Nov 25 07:41:15 2014 +0100

    fix gurpmi --auto not working anymore (mga#14565)
    
    jut use new splited out 'drakbug' module instead of 'standalone'
    rationale: @ARGV handling in standalone breaks gurpmi --auto
    regression introduced commit a7c54188c5a236a07bc6aeb504f1b384960f80
---
 Commit Link:
   http://gitweb.mageia.org/software/rpm/urpmi/commit/?id=13217bb974d4df92858e5b1584979b5df5bcf2b9
Comment 4 Thierry Vignaud 2014-11-25 10:53:35 CET
Fixed

Status: ASSIGNED => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.