summaryrefslogtreecommitdiff
path: root/libcore
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2015-05-31 06:53:39 +0200
committerlouis <louis.braun@gmx.de>2015-05-31 06:53:39 +0200
commitb0208d8b9bc8d67825ad6fdcbeac5d57f1c2f0de (patch)
treed1a4c96157bec42c4bf6ead8a5e80f7bceeed31b /libcore
parentdc0423c109463d7d0e2b5c4ec0a4501d86e8c4e4 (diff)
downloadvdr-plugin-skindesigner-b0208d8b9bc8d67825ad6fdcbeac5d57f1c2f0de.tar.gz
vdr-plugin-skindesigner-b0208d8b9bc8d67825ad6fdcbeac5d57f1c2f0de.tar.bz2
added some debug output when installing skins
Diffstat (limited to 'libcore')
-rw-r--r--libcore/skinrepo.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libcore/skinrepo.c b/libcore/skinrepo.c
index 4822c5d..91f22a9 100644
--- a/libcore/skinrepo.c
+++ b/libcore/skinrepo.c
@@ -35,6 +35,8 @@ void cSkinRepo::Install(string path, string themesPath) {
command = *cString::sprintf("git clone --progress %s %s", url.c_str(), skinPath.c_str());
tempfile = *cString::sprintf("gitclone_%s_%ld.out", name.c_str(), time(0));
+ dsyslog("skindesigner: installing skin from Git, command: %s, logfile: %s", command.c_str(), tempfile.c_str());
+
Start();
} else if (repoType == rtZipUrl) {
@@ -46,6 +48,8 @@ void cSkinRepo::Install(string path, string themesPath) {
command = *cString::sprintf("wget -P /tmp/ %s", url.c_str());
command2 = *cString::sprintf("unzip /tmp/%s -d %s", filename.c_str(), path.c_str());
+
+ dsyslog("skindesigner: installing skin from Zip, command: %s, %s", command.c_str(), command2.c_str());
Start();
}
@@ -61,6 +65,8 @@ void cSkinRepo::Update(string path) {
command = *cString::sprintf("cd %s; git pull", skinPath.c_str());
tempfile = *cString::sprintf("gitpull_%s_%ld.out", name.c_str(), time(0));
+ dsyslog("skindesigner: updating skin from Git, command: %s, logfile: /tmp/%s", command.c_str(), tempfile.c_str());
+
Start();
} else if (repoType == rtZipUrl) {
@@ -86,6 +92,9 @@ void cSkinRepo::Action(void) {
if (result == 0) {
if (action == eaInstall)
CreateThemeFiles();
+ dsyslog("skindesigner: %s successfully executed", command.c_str());
+ } else {
+ esyslog("skindesigner: ERROR executing %s", command.c_str());
}
}