Revision 9f196499
Added by Martin Bacovsky about 5 years ago
katello/hooks/pre_commit/09-version_locking.rb | ||
---|---|---|
end
|
||
|
||
# unlock packages if locked
|
||
if system('foreman-maintain packages is-locked --assumeyes > /dev/null')
|
||
if system('foreman-maintain packages is-locked --assumeyes > /dev/null 2>&1')
|
||
Kafo::Helpers.log_and_say :info, "Package versions are locked. Continuing with unlock."
|
||
Kafo::Helpers.execute('foreman-maintain packages unlock --assumeyes', false)
|
||
end
|
||
nil
|
||
|
Also available in: Unified diff
Refs #26409 - Suppress error out on lock test