aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-modules
diff options
context:
space:
mode:
authorMattia Rizzolo <mattia@mapreri.org>2015-11-13 11:21:45 +0000
committerMattia Rizzolo <mattia@mapreri.org>2015-11-15 10:16:16 +0000
commit142b718d9bce0be499e8426c27bce848728559a8 (patch)
treebd0ba4e9749b3f2b18bf4858cf276eb705cf6dbc /pbuilder-modules
parent311c138dc394e6771517f339f234afff80ab54f6 (diff)
downloadpbuilder-142b718d9bce0be499e8426c27bce848728559a8.tar
pbuilder-142b718d9bce0be499e8426c27bce848728559a8.tar.gz
modules: add 3 log.{i,w,e} functions to be used instead of log()
Diffstat (limited to 'pbuilder-modules')
-rw-r--r--pbuilder-modules12
1 files changed, 12 insertions, 0 deletions
diff --git a/pbuilder-modules b/pbuilder-modules
index 363f7d7..806f6f0 100644
--- a/pbuilder-modules
+++ b/pbuilder-modules
@@ -116,6 +116,18 @@ function log() {
esac
}
+log.e() {
+ log "E: $*"
+}
+
+log.w() {
+ log "W: $*"
+}
+
+log.i() {
+ log "I: $*"
+}
+
# test whether a directory is empty
# fails if "$*" exists but isn't a directory
# fails and outputs garbage if "$*" doesn't actually exist