[Lunar-commits] <moonbase> POST_REMOVE

Terry Chan tchan at lunar-linux.org
Sat Feb 20 16:02:22 CET 2010


commit 6f49ca29b146bae17bff90e618a59f5d94f89e3c
Author: Terry Chan <tchan at lunar-linux.org>
Date:   Sat Feb 20 09:02:22 2010 -0600

    POST_REMOVE
    
    bzr-gtk: Added a python module cleanup
---
 devel/bzr-gtk/POST_REMOVE |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/devel/bzr-gtk/POST_REMOVE b/devel/bzr-gtk/POST_REMOVE
new file mode 100644
index 0000000..467e6ef
--- /dev/null
+++ b/devel/bzr-gtk/POST_REMOVE
@@ -0,0 +1,8 @@
+# determine the current major Python version
+python_major=`installed_version Python | cut -d. -f1-2`
+  
+# determine the Python site-packages path
+bzr_gtk_dir="/usr/lib/python${python_major}/site-packages/bzrlib/plugins/gtk"
+
+# have to clean up the pre-compiled python modules for bzr-gtk
+rm -rf $bzr_gtk_dir


More information about the Lunar-commits mailing list