added some debug output when installing skins

This commit is contained in:
louis 2015-05-31 06:53:39 +02:00
parent dc0423c109
commit b0208d8b9b
1 changed files with 9 additions and 0 deletions

View File

@ -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());
}
}