[SM-Commit] PERFORCE change 78598 by Arwed von Merkatz for review

Perforce Review Daemon p4review at smee.org
Fri Apr 28 13:45:01 EDT 2006


Change 78598 by arwed_von_merkatz at arwed-Otherland on 2006/04/28 18:41:56

	backwards compatibility for the other sub_depends syntax, bug #10802

Affected files ...

... //sgl/grimoires/devel/ChangeLog#312 edit
... //sgl/grimoires/devel/libcompat#4 edit

Differences ...

==== //sgl/grimoires/devel/ChangeLog#312 (text) ====

@@ -1,5 +1,7 @@
 2006-04-28 Arwed v. Merkatz <v.merkatz at gmx.net>
-	* libcompat: added fast_up_depends function, bug #10661
+	* libcompat: added fast_up_depends function, bug #10661,
+		added dropping of '-sub SUB_DEPENDS' parameter for depends and
+		optional_depends, bug #10802
 
 2006-04-28 Treeve Jelbert <treeve01 at pi.be>
 	* database/dbstep: remove dead spell

==== //sgl/grimoires/devel/libcompat#4 (xtext) ====

@@ -1,7 +1,19 @@
 # ignore sub_depends if not supported by sorcery
 declare -f sub_depends &> /dev/null ||
-function sub_depends() {
- :
+{
+  function sub_depends() {
+   :
+  }
+
+  function depends() {
+    [[ $1 == "-sub" ]] && shift 2
+    real_depends "$@"
+  }
+
+  function optional_depends() {
+    [[ $1 == "-sub" ]] && shift 2
+    real_optional_depends "$@"
+  }
 }
 
 # ignore force_depends if not supported by sorcery



More information about the SM-Commit mailing list