[100907] trunk/dports/python/py-dateutil/Portfile
ram at macports.org
ram at macports.org
Mon Dec 31 08:00:16 PST 2012
Revision: 100907
https://trac.macports.org/changeset/100907
Author: ram at macports.org
Date: 2012-12-31 08:00:16 -0800 (Mon, 31 Dec 2012)
Log Message:
-----------
python/py32-dateutil: delete previously autogenerated .pyc files before
activating #37448
Modified Paths:
--------------
trunk/dports/python/py-dateutil/Portfile
Modified: trunk/dports/python/py-dateutil/Portfile
===================================================================
--- trunk/dports/python/py-dateutil/Portfile 2012-12-31 13:38:53 UTC (rev 100906)
+++ trunk/dports/python/py-dateutil/Portfile 2012-12-31 16:00:16 UTC (rev 100907)
@@ -58,3 +58,14 @@
} else {
livecheck.type none
}
+
+subport py32-dateutil {
+ pre-activate {
+ set regref [registry_open $subport $version $revision $portvariants ""]
+ foreach f [registry_prop_retr $regref imagefiles] {
+ if {[file extension $f] == ".pyc" && [file exists $f] && [registry_file_registered $f] == "0"} {
+ file delete -force $f
+ }
+ }
+ }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121231/9f3fce74/attachment.html>
More information about the macports-changes
mailing list