summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroot2006-06-15 22:34:56 -0500
committerroot2006-06-15 22:34:56 -0500
commita62cc635a64da99a4f1e6137b741c771d604b441 (patch)
tree0f6cfb9308b70afd80a80d0a7d337634be510fc8
parent4af737cc21a91b04ad37f2bec007ad1fa3a90cf5 (diff)
libcompat: 2006/06/15 sync stable from p4
-rwxr-xr-xlibcompat20
1 files changed, 20 insertions, 0 deletions
diff --git a/libcompat b/libcompat
new file mode 100755
index 0000000000..0cd7fd6b06
--- /dev/null
+++ b/libcompat
@@ -0,0 +1,20 @@
+# ignore sub_depends if not supported by sorcery
+declare -f sub_depends &> /dev/null ||
+function sub_depends() {
+ :
+}
+
+# ignore force_depends if not supported by sorcery
+declare -f force_depends &> /dev/null ||
+function force_depends() {
+ :
+}
+
+#-------------------------------------------------------------------------
+## Grimoire gaze depends alternative
+## Uses gaze depends if the internal sorcery function isn't available
+#-------------------------------------------------------------------------
+declare -f fast_up_depends &> /dev/null ||
+function fast_up_depends() {
+ gaze -q depends --fast "$@"
+}