Bug 964058

Summary: No check for already enabled collections in scl enable <collection>+ <command>
Product: Red Hat Enterprise Linux 6 Reporter: Lukáš Zachar <lzachar>
Component: scl-utilsAssignee: Jan Zeleny <jzeleny>
Status: CLOSED ERRATA QA Contact: Lukáš Zachar <lzachar>
Severity: high Docs Contact:
Priority: high    
Version: 6.4CC: drieden, jkurik
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: scl-utils-20120927-8.el6 Doc Type: Bug Fix
Doc Text:
* Previously, when enabling collections, a check whether a collection was enabled was performed. However, independently of the result the collection was always enabled. Consequently, if a single collection had been stated multiple times in the command line, it would be enabled multiple times. In the case of some destructive enable scriptlets, this might have led to some undetermined behavior. This update runs the enable scriptlet only if the collection has not been enabled before, and attempts to enable a collection multiple times in one environment will be ignored.
Story Points: ---
Clone Of: 964056 Environment:
Last Closed: 2013-11-21 06:07:32 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 964056, 964061    
Bug Blocks: 976551    

Description Lukáš Zachar 2013-05-17 07:31:35 UTC
+++ This bug was initially created as a clone of Bug #964056 +++

Description of problem:

It is possible to enable collection repeatedly when it is specified multiple times for 'scl enable' command .

Version-Release number of selected component (if applicable):
scl-utils-20120927-2.el6

How reproducible:
always

Steps to Reproduce:
1. scl enable MockA MockB MockA 'echo $PATH; echo $X_SCLS'
2.
3.
  
Actual results:
/opt/rh/MockA/root/bin:/opt/rh/MockB/root/bin:/opt/rh/MockA/root/bin
X_SCLS=MockA MockB

Expected results:
/opt/rh/MockB/root/bin:/opt/rh/MockA/root/bin
X_SCLS=MockA MockB

Additional info:

--- Additional comment from RHEL Product and Program Management on 2013-05-17 03:29:59 EDT ---

This request was evaluated by Red Hat Product Management for inclusion
in a Red Hat Enterprise Linux release.  Product Management has
requested further review of this request by Red Hat Engineering, for
potential inclusion in a Red Hat Enterprise Linux release for currently
deployed products.  This request is not yet committed for inclusion in
a release.

Comment 7 errata-xmlrpc 2013-11-21 06:07:32 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2013-1554.html