18360 Cannot publish renamed packages action by action with file protocol
authorDanek Duvall <danek.duvall@oracle.com>
Tue, 17 May 2011 09:16:12 -0700
changeset 2362 960c668ee440
parent 2361 1b5ced2f406f
child 2363 493a9a6537a9
18360 Cannot publish renamed packages action by action with file protocol
src/modules/server/transaction.py
--- a/src/modules/server/transaction.py	Tue May 17 11:59:28 2011 +0100
+++ b/src/modules/server/transaction.py	Tue May 17 09:16:12 2011 -0700
@@ -401,6 +401,10 @@
                 self.types_found = set((
                     action.name for action in m.gen_actions()
                 ))
+                self.has_reqdeps = any(
+                    a.attrs["type"] == "require"
+                    for a in m.gen_actions_by_type("depend")
+                )
 
         def close(self, add_to_catalog=True):
                 """Closes an open transaction, returning the published FMRI for