[yum-cvs] yum shell.py,1.6,1.7

Seth Vidal skvidal at login.linux.duke.edu
Mon Mar 7 07:08:10 UTC 2005


Update of /home/groups/yum/cvs/yum
In directory login:/tmp/cvs-serv5288

Modified Files:
	shell.py 
Log Message:

refined language a bit:

normal commands from yum cli
special shell commands:
run - same as 'ts run'
transaction (aliased to 'ts' as well)
        run - run transaction
        solve - dep solve transaction
        list - list transaction
        reset - reset transaction
quit
exit


Index: shell.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/shell.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- shell.py	7 Mar 2005 07:01:28 -0000	1.6
+++ shell.py	7 Mar 2005 07:08:08 -0000	1.7
@@ -88,6 +88,12 @@
             self.base.doTsSetup()
             self.base.doRpmDBSetup()
         
+        elif cmd == 'solve':
+            (code, msgs) = self.base.buildTransaction()
+            if code == 1:
+                for msg in msgs:
+                    self.base.errorlog(0, 'Error: %s' % msg)
+        
         elif cmd == 'run':
             return self.do_run('')
             
@@ -100,12 +106,6 @@
         print args
         print line
         
-    def do_depsolve(self, line):
-        (code, msgs) = self.base.buildTransaction()
-        if code == 1:
-            for msg in msgs:
-                self.base.errorlog(0, 'Error: %s' % msg)
-        
     def do_run(self, line):
         if len(self.base.tsInfo) > 0:
             try:




More information about the Yum-cvs-commits mailing list