Bug 598527

Summary: [RFE] option to exit if the yum lock is taken
Product: [Fedora] Fedora Reporter: Jiri Moskovcak <jmoskovc>
Component: yumAssignee: Seth Vidal <skvidal>
Status: CLOSED UPSTREAM QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: dfediuck, ffesti, james.antill, maxamillion, pmatilai, tla
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-06-01 19:24:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Jiri Moskovcak 2010-06-01 15:02:01 UTC
Description of problem:
It would be useful to have an option to tell yum to not wait and exit if the lock taken (e.g. if yum is run non-interactive from some script)

Actual results:
yum waits until the lock is freed

Expected results:
yum exits

Thank you,

Comment 1 seth vidal 2010-06-01 19:24:27 UTC
patch posted upstream to allow this.

config option is:


it would be accessible via setting in yum.conf or via

yum --setopt="exit_on_lock=true" yourcommandhere