New commits:
commit 03a0e6b24968bf3d7ee17705133964f3f09b3ebe
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
libcompat: added runtime_depends_2 which is a noop on system without
runtime_depends and the same as runtime_depends on others
diff --git a/ChangeLog b/ChangeLog
index 9f25c42..049813e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-22 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
+ * libcompat: added runtime_depends_2 which is a noop on system without
+ runtime_depends and the same as runtime_depends on others
+
2008-08-24 George Sherwood <gsherwood AT sourcemage.org>
* chat-im/carrier: new spell, rename of funpidgin
diff --git a/libcompat b/libcompat
index e99926b..c924e3c 100755
--- a/libcompat
+++ b/libcompat
@@ -52,10 +52,19 @@ else
fi
# fall back to depends if runtime_depends isn't implemented
-declare -f runtime_depends &> /dev/null ||
-function runtime_depends() {
- depends "$@"
-}
+if declare -f runtime_depends &> /dev/null; then
+ function runtime_depends_2() {
+ runtime_depends "$@"
+ }
+else
+ function runtime_depends() {
+ depends "$@"
+ }
+
+ function runtime_depends_2() {
+ true
+ }
+fi
declare -f is_depends_enabled &>/dev/null ||
function is_depends_enabled() {
[SM-Commit] GIT changes to master grimoire by Jaka Kranjc (03a0e6b24968bf3d7ee17705133964f3f09b3ebe),
Jaka Kranjc, 08/25/2008