---
 repoquery.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/repoquery.py b/repoquery.py
index 303ee3e..403074b 100755
--- a/repoquery.py
+++ b/repoquery.py
@@ -1499,6 +1499,12 @@ def main(args):
                 repo.enable()
 
     try:
+        repoq.doLock()
+    except yum.Errors.LockError, e:
+        repoq.logger.error(e)
+        sys.exit(50)
+
+    try:
         if not hasattr(repoq, 'arch'):
             repoq.doSackSetup(archlist=archlist)
         elif archlist is not None:
-- 
1.7.11.7

_______________________________________________
Yum-devel mailing list
[email protected]
http://lists.baseurl.org/mailman/listinfo/yum-devel

Reply via email to