[Lunar-commits] <moonbase> gnash: cleanup stale symlinks on removal

Paul Bredbury brebs at lunar-linux.org
Sat Mar 5 23:41:41 CET 2011


commit 46b58b7343f6b23905a9fc987704894c3df64e3c
Author: Paul Bredbury <brebs at lunar-linux.org>
Date:   Sun Mar 6 05:41:41 2011 +0700

    gnash: cleanup stale symlinks on removal
---
 zbeta/gnash/POST_REMOVE |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/zbeta/gnash/POST_REMOVE b/zbeta/gnash/POST_REMOVE
new file mode 100644
index 0000000..10fce43
--- /dev/null
+++ b/zbeta/gnash/POST_REMOVE
@@ -0,0 +1,7 @@
+# Cleanup stale symlinks
+rm -f /usr/lib/gnash/libgnash{base,core,media,render,sound,vaapi}.so &&
+
+if [ -d /usr/lib/gnash ] ; then
+  # The directory should be empty now
+  rmdir /usr/lib/gnash || true
+fi


More information about the Lunar-commits mailing list