Skip to content

Commit

Permalink
Merge pull request #1376 from craigcomstock/debug-debian-dpkg-locks-3.21
Browse files Browse the repository at this point in the history
Modified retry_wrapper to get more info about package manager retry reasons (3.21)
  • Loading branch information
craigcomstock authored Jan 30, 2024
2 parents f9787f3 + 2c00117 commit fbfa4c6
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 fbfa4c6

Please sign in to comment.