Revision: 100839 https://trac.macports.org/changeset/100839 Author: michaelld@macports.org Date: 2012-12-28 05:26:17 -0800 (Fri, 28 Dec 2012) Log Message: ----------- py*-pyqt4 : delete python3 code from python2 installs and vice versa, if each exists Modified Paths: -------------- trunk/dports/python/py-pyqt4/Portfile Modified: trunk/dports/python/py-pyqt4/Portfile =================================================================== --- trunk/dports/python/py-pyqt4/Portfile 2012-12-28 11:47:40 UTC (rev 100838) +++ trunk/dports/python/py-pyqt4/Portfile 2012-12-28 13:26:17 UTC (rev 100839) @@ -187,11 +187,16 @@ ${destroot}${qt_data_dir}/qsci/api/python/PyQt4-Python${python.branch}.api } - # delete python3 code from python2 installs and vice versa + # delete python3 code from python2 installs and vice versa, + # if each exists if {${python.version} >= 30} { - delete ${destroot}${python.pkgd}/PyQt4/uic/port_v2 + if {[file exists ${destroot}${python.pkgd}/PyQt4/uic/port_v2]} { + delete ${destroot}${python.pkgd}/PyQt4/uic/port_v2 + } } else { - delete ${destroot}${python.pkgd}/PyQt4/uic/port_v3 + if {[file exists ${destroot}${python.pkgd}/PyQt4/uic/port_v3]} { + delete ${destroot}${python.pkgd}/PyQt4/uic/port_v3 + } } }