[yum-cvs] yum shell.py,1.4,1.5
Seth Vidal
skvidal at login.linux.duke.edu
Sun Mar 6 17:39:45 UTC 2005
Update of /home/groups/yum/cvs/yum
In directory login:/tmp/cvs-serv29790
Modified Files:
shell.py
Log Message:
some shell updates and made it possible to reset the state of the rpmdb and transaction
set that yum has available.
Index: shell.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/shell.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- shell.py 24 Feb 2005 08:25:35 -0000 1.4
+++ shell.py 6 Mar 2005 17:39:43 -0000 1.5
@@ -72,8 +72,33 @@
self.resultmsgs = ['Leaving Shell']
return True
- def do_listTransaction(self, line):
- print self.base.listTransaction()
+ def do_ts(self, line):
+ self.do_transaction(line)
+
+ def do_transaction(self, line):
+ (cmd, args, line) = self.parseline(line)
+ if cmd is None:
+ pass
+
+ elif cmd == 'list':
+ print self.base.listTransaction()
+
+ elif cmd == 'reset':
+ self.base.closeRpmDB()
+ self.base.doTsSetup()
+ self.base.doRpmDBSetup()
+
+ elif cmd == 'run':
+ return self.do_run('')
+
+ else:
+ self.do_help('transaction')
+
+ def do_test(self, line):
+ (cmd, args, line) = self.parseline(line)
+ print cmd
+ print args
+ print line
def do_depsolve(self, line):
self.base.buildTransaction()
More information about the Yum-cvs-commits
mailing list