[yum-commits] yum-debug-restore.py

zpavlas at osuosl.org zpavlas at osuosl.org
Wed Oct 24 09:19:04 UTC 2012


 yum-debug-restore.py |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

New commits:
commit 70ab22bf5a6483c7c1ed79315ea3807404cdea02
Author: Zdeněk Pavlas <zpavlas at redhat.com>
Date:   Fri Oct 19 10:39:07 2012 +0200

    yum-debug-restore: turn off installonly_limit.  BZ 820674
    
    Want to restore exactly the same set of installonly packages,
    even if the installonly limit is hit.

diff --git a/yum-debug-restore.py b/yum-debug-restore.py
index 1e2a659..1d827f4 100755
--- a/yum-debug-restore.py
+++ b/yum-debug-restore.py
@@ -232,10 +232,8 @@ def main():
         sys.exit(0)
 
     # Want to do the transaction, hacky method
-    if xtra_args:
-        os.system("yum shell %s %s" % (" ".join(xtra_args), fo.name))
-    else:
-        os.system("yum shell %s" % fo.name)
+    xtra_args.append('--setopt=installonly_limit=0')
+    os.system("yum shell %s %s" % (" ".join(xtra_args), fo.name))
 
 if __name__ == "__main__":
     main()


More information about the Yum-commits mailing list