mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
added some debug output when installing skins
This commit is contained in:
parent
dc0423c109
commit
b0208d8b9b
@ -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());
|
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));
|
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();
|
Start();
|
||||||
|
|
||||||
} else if (repoType == rtZipUrl) {
|
} else if (repoType == rtZipUrl) {
|
||||||
@ -47,6 +49,8 @@ void cSkinRepo::Install(string path, string themesPath) {
|
|||||||
command = *cString::sprintf("wget -P /tmp/ %s", url.c_str());
|
command = *cString::sprintf("wget -P /tmp/ %s", url.c_str());
|
||||||
command2 = *cString::sprintf("unzip /tmp/%s -d %s", filename.c_str(), path.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();
|
Start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -61,6 +65,8 @@ void cSkinRepo::Update(string path) {
|
|||||||
command = *cString::sprintf("cd %s; git pull", skinPath.c_str());
|
command = *cString::sprintf("cd %s; git pull", skinPath.c_str());
|
||||||
tempfile = *cString::sprintf("gitpull_%s_%ld.out", name.c_str(), time(0));
|
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();
|
Start();
|
||||||
|
|
||||||
} else if (repoType == rtZipUrl) {
|
} else if (repoType == rtZipUrl) {
|
||||||
@ -86,6 +92,9 @@ void cSkinRepo::Action(void) {
|
|||||||
if (result == 0) {
|
if (result == 0) {
|
||||||
if (action == eaInstall)
|
if (action == eaInstall)
|
||||||
CreateThemeFiles();
|
CreateThemeFiles();
|
||||||
|
dsyslog("skindesigner: %s successfully executed", command.c_str());
|
||||||
|
} else {
|
||||||
|
esyslog("skindesigner: ERROR executing %s", command.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user