components/python/mysql/mysql-PYVER.p5m
changeset 1666 69d14d547e77
parent 1251 f1fb66b52f41
child 1673 f4a923835a61
--- a/components/python/mysql/mysql-PYVER.p5m	Mon Jan 27 15:13:46 2014 -0800
+++ b/components/python/mysql/mysql-PYVER.p5m	Mon Jan 27 17:48:58 2014 -0800
@@ -20,11 +20,11 @@
 #
 
 #
-# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
 #
 
 set name=pkg.fmri \
-    value=pkg:/library/python-2/python-mysql-$(PYV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
+    value=pkg:/library/python/python-mysql-$(PYV)@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION)
 set name=pkg.summary \
     value="A MySQL database adapter for the Python programming language"
 set name=com.oracle.info.description value="the MySQL database adapter for Python"
@@ -40,7 +40,7 @@
        pkg.debug.depend.path=usr/bin type=require
 
 # force a dependency on the python-mysql package
-depend fmri=library/python-2/python-mysql@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) \
+depend fmri=library/python/python-mysql@$(IPS_COMPONENT_VERSION),$(BUILD_VERSION) \
     type=require
 
 file path=usr/lib/python$(PYVER)/vendor-packages/MySQL_python-1.2.2-py$(PYVER).egg-info/PKG-INFO
@@ -68,3 +68,7 @@
 # dependency is here to facilitate the safe transfer of the package
 # to the 'userland' consolidation.
 depend type=optional fmri=consolidation/desktop/[email protected]
+
+# force the rename with an optional dependency on the old name
+depend type=optional \
+    fmri=library/python-2/python-mysql-$(PYV)@1.2.2,5.12-5.12.0.0.0.41.0