src/util/distro-import/importer.py
changeset 1731 a76f8a1fc049
parent 1697 4409e56754c5
child 1810 523a6a6aa094
--- a/src/util/distro-import/importer.py	Thu Feb 04 23:50:08 2010 -0800
+++ b/src/util/distro-import/importer.py	Fri Feb 05 13:07:38 2010 -0800
@@ -1523,6 +1523,8 @@
 
                 # Add packages that aren't renamed or obsoleted
                 or_pkgs = or_pkgs_per_con.get(cons, {})
+                curpkg.actions.append(actions.fromstr(
+                    "set name=pkg.depend.install-hold value=core-os.%s" % cons))
 
                 for depend in cons_dict[cons]:
                         if depend not in or_pkgs:
@@ -1556,6 +1558,8 @@
                     "system update and correct package selection depend on the " \
                     "presence of this incorporation.  Removing this package will " \
                     "result in an unsupported system."
+                curpkg.actions.append(actions.fromstr(
+                    "set name=pkg.depend.install-hold value=core-os"))
 
                 for incorp in consolidation_incorporations:
                         action = actions.fromstr("depend fmri=%s type=incorporate" % incorp)