[Yum-devel] [PATCH] repoquery: retry doLock() BZ 988223
Zdenek Pavlas
zpavlas at redhat.com
Thu Jul 25 08:43:19 UTC 2013
---
repoquery.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/repoquery.py b/repoquery.py
index eb8bb15..1531583 100755
--- a/repoquery.py
+++ b/repoquery.py
@@ -1502,11 +1502,11 @@ def main(args):
for repo in repoq.repos.findRepos(repo_match):
repo.enable()
- try:
- repoq.doLock()
- except yum.Errors.LockError, e:
+ while True:
+ try: repoq.doLock(); break
+ except yum.Errors.LockError, e: pass
repoq.logger.error(e)
- sys.exit(50)
+ time.sleep(2)
try:
if not hasattr(repoq, 'arch'):
--
1.7.11.7
More information about the Yum-devel
mailing list