1 |
commit: b9ae4dd215d2a4b1e0f253b10525e3659f5a7cb6 |
2 |
Author: Mu Qiao <qiaomuf <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 31 13:27:47 2011 +0000 |
4 |
Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 1 12:15:21 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/libbash.git;a=commit;h=b9ae4dd2 |
7 |
|
8 |
Utility: add more portage functions |
9 |
|
10 |
--- |
11 |
utils/isolated-functions.sh | 32 ++++++++++++++++++++++++++++++++ |
12 |
1 files changed, 32 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/utils/isolated-functions.sh b/utils/isolated-functions.sh |
15 |
index efbf933..d4073dc 100755 |
16 |
--- a/utils/isolated-functions.sh |
17 |
+++ b/utils/isolated-functions.sh |
18 |
@@ -20,3 +20,35 @@ EXPORT_FUNCTIONS() { |
19 |
fi |
20 |
$__export_funcs_var="$__export_funcs_var $*" |
21 |
} |
22 |
+ |
23 |
+use() { |
24 |
+ echo "use should be called" |
25 |
+ return 1 |
26 |
+} |
27 |
+ |
28 |
+useq() { |
29 |
+ echo "useq should be called" |
30 |
+ return 1 |
31 |
+} |
32 |
+ |
33 |
+use_with() { |
34 |
+ echo "use_with should be called" |
35 |
+ return 1 |
36 |
+} |
37 |
+ |
38 |
+use_enable() { |
39 |
+ echo "use_enable should be called" |
40 |
+ return 1 |
41 |
+} |
42 |
+ |
43 |
+eerror() { |
44 |
+ echo "eerror: $*" >&2 |
45 |
+} |
46 |
+ |
47 |
+debug-print() { |
48 |
+ echo "debug-print: $*" |
49 |
+} |
50 |
+ |
51 |
+ewarn() { |
52 |
+ echo "ewarn: $*" >&2 |
53 |
+} |