Index: smart/commands/install.py
===================================================================
--- smart/commands/install.py	(revisão 695)
+++ smart/commands/install.py	(cópia de trabalho)
@@ -54,6 +54,8 @@
                       help=_("split operation in steps"))
     parser.add_option("--urls", action="store_true",
                       help=_("dump needed urls and don't commit operation"))
+    parser.add_option("--dump", action="store_true",
+                      help=_("dump packages and don't commit operation"))
     parser.add_option("--download", action="store_true",
                       help=_("download packages and don't commit operation"))
     parser.add_option("--explain", action="store_true",
@@ -165,6 +167,8 @@
         confirm = not opts.yes
         if opts.urls:
             ctrl.dumpTransactionURLs(trans)
+        if opts.dump:
+            ctrl.dumpTransactionPackages(trans, "install")
         elif opts.download:
             ctrl.downloadTransaction(trans, confirm=confirm)
         elif opts.stepped:
Index: smart/commands/upgrade.py
===================================================================
--- smart/commands/upgrade.py	(revisão 695)
+++ smart/commands/upgrade.py	(cópia de trabalho)
@@ -53,6 +53,8 @@
                       help=_("split operation in steps"))
     parser.add_option("--urls", action="store_true",
                       help=_("dump needed urls and don't commit operation"))
+    parser.add_option("--dump", action="store_true",
+                          help=_("dump packages and don't commit operation"))
     parser.add_option("--download", action="store_true",
                       help=_("download packages and don't commit operation"))
     parser.add_option("--update", action="store_true",
@@ -174,6 +176,8 @@
         confirm = not opts.yes
         if opts.urls:
             ctrl.dumpTransactionURLs(trans)
+        if opts.dump:
+            ctrl.dumpTransactionPackages(trans, "upgrade")
         elif opts.download:
             ctrl.downloadTransaction(trans, confirm=confirm)
         elif opts.stepped:
Index: smart/control.py
===================================================================
--- smart/control.py	(revisão 695)
+++ smart/control.py	(cópia de trabalho)
@@ -414,6 +414,18 @@
         for url in urls:
             print >>output, url
 
+    def dumpTransactionPackages(self, trans, action="install"):
+        print
+        from smart.report import Report
+        report = Report(trans.getChangeSet())
+        report.compute()
+        if action == "install":
+            for pkg in report.installing:
+                print >>sys.stderr, pkg
+        elif action == "upgrade":
+            for pkg in report.upgrading:
+                print >>sys.stderr, pkg
+
     def downloadURLs(self, urllst, what=None, caching=NEVER, targetdir=None):
         fetcher = self._fetcher
         fetcher.reset()

