sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master sorcery by Jaka Kranjc (e8d93f0a799fc7d599dc16c922c54fe22095295d)
- From: Jaka Kranjc <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master sorcery by Jaka Kranjc (e8d93f0a799fc7d599dc16c922c54fe22095295d)
- Date: Thu, 6 Oct 2011 12:20:10 -0500
GIT changes to master sorcery by Jaka Kranjc <lynxlynxlynx AT sourcemage.org>:
ChangeLog | 3 +++
var/lib/sorcery/modules/libdownload | 2 +-
2 files changed, 4 insertions(+), 1 deletion(-)
New commits:
commit e8d93f0a799fc7d599dc16c922c54fe22095295d
Author: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
Commit: Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
libdownload: print the original argument if cmd is unset
eg. if svn is passed, cmd is empty and nothing is printed as the first
word in the sentence
diff --git a/ChangeLog b/ChangeLog
index f586262..e3bf412 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,2 +1,5 @@
+2011-10-06 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
+ * libdownload: print the original argument if cmd is unset
+
2011-09-22 Jaka Kranjc <lynxlynxlynx AT sourcemage.org>
* Start 1.16 development stream.
diff --git a/var/lib/sorcery/modules/libdownload
b/var/lib/sorcery/modules/libdownload
index a548acf..2f1335f 100755
--- a/var/lib/sorcery/modules/libdownload
+++ b/var/lib/sorcery/modules/libdownload
@@ -96,7 +96,7 @@ function dl_command_check() {
local cmd
smgl_which $1 cmd
if ! [[ $cmd ]] || ! test -x $cmd ; then
- message "${PROBLEM_COLOR}$cmd is not installed, please cast it..." \
+ message "${PROBLEM_COLOR}${cmd:-$1} is not installed, please cast it..."
\
"${DEFAULT_COLOR}"
return 1
fi
- [SM-Commit] GIT changes to master sorcery by Jaka Kranjc (e8d93f0a799fc7d599dc16c922c54fe22095295d), Jaka Kranjc, 10/06/2011
Archive powered by MHonArc 2.6.24.