Skip to content

Commit

Permalink
Modified retry_wrapper to get more info about package manager retry r…
Browse files Browse the repository at this point in the history
…easons

See if another package manager process is locking the package manager database, like /var/lib/dpkg/lock and such

Ticket: ENT-11166
Changelog: none
(cherry picked from commit 0a2fd99)
  • Loading branch information
craigcomstock committed Jan 26, 2024
1 parent f9787f3 commit 2c00117
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build-scripts/functions
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,8 @@ retry_wrapper()
return 0
else
err_ret=$?
# in case say dpkg locks are held by automatic updates or something
ps -efl | grep -P '(apt|dpkg|yum|dnf|zypper|rpm|pkg)'
maxtries=`expr $maxtries - 1`
echo "* FAILURE $err_ret"
echo "* Sleeping for: $pause seconds"
Expand Down

0 comments on commit 2c00117

Please sign in to comment.