Modified: trunk/dports/python/py-pyqt4/Portfile (100838 => 100839)
--- 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
+ }
}
}