xbps-fbulk: create log files with txt extension.
This commit is contained in:
parent
4f8e07aa64
commit
5d81aec07f
@ -174,7 +174,7 @@ processCompletion(struct item *item)
|
|||||||
* (If XDEPFAIL the log is at correct location).
|
* (If XDEPFAIL the log is at correct location).
|
||||||
*/
|
*/
|
||||||
if (item->status == XRUN) {
|
if (item->status == XRUN) {
|
||||||
logpath = xbps_xasprintf("%s/run/%s", LogDir, item->pkgn);
|
logpath = xbps_xasprintf("%s/run/%s.txt", LogDir, item->pkgn);
|
||||||
switch (item->xcode) {
|
switch (item->xcode) {
|
||||||
case 0:
|
case 0:
|
||||||
logdir = "good";
|
logdir = "good";
|
||||||
@ -186,7 +186,7 @@ processCompletion(struct item *item)
|
|||||||
logdir = "bad";
|
logdir = "bad";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
logpath2 = xbps_xasprintf("%s/%s/%s", LogDir, logdir, item->pkgn);
|
logpath2 = xbps_xasprintf("%s/%s/%s.txt", LogDir, logdir, item->pkgn);
|
||||||
(void)rename(logpath, logpath2);
|
(void)rename(logpath, logpath2);
|
||||||
free(logpath);
|
free(logpath);
|
||||||
free(logpath2);
|
free(logpath2);
|
||||||
@ -217,7 +217,8 @@ processCompletion(struct item *item)
|
|||||||
} else {
|
} else {
|
||||||
xitem->xcode = item->xcode;
|
xitem->xcode = item->xcode;
|
||||||
xitem->status = XDEPFAIL;
|
xitem->status = XDEPFAIL;
|
||||||
logpath = xbps_xasprintf("%s/deps/%s", LogDir, xitem->pkgn);
|
logpath = xbps_xasprintf("%s/deps/%s.txt",
|
||||||
|
LogDir, xitem->pkgn);
|
||||||
fp = fopen(logpath, "a");
|
fp = fopen(logpath, "a");
|
||||||
fprintf(fp, "%s\n", item->pkgn);
|
fprintf(fp, "%s\n", item->pkgn);
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
@ -302,16 +303,16 @@ runBuilds(const char *bpath)
|
|||||||
* When [re]running a build remove any bad log from prior
|
* When [re]running a build remove any bad log from prior
|
||||||
* attempts.
|
* attempts.
|
||||||
*/
|
*/
|
||||||
logpath = xbps_xasprintf("%s/bad/%s", LogDir, item->pkgn);
|
logpath = xbps_xasprintf("%s/bad/%s.txt", LogDir, item->pkgn);
|
||||||
(void)remove(logpath);
|
(void)remove(logpath);
|
||||||
free(logpath);
|
free(logpath);
|
||||||
logpath = xbps_xasprintf("%s/deps/%s", LogDir, item->pkgn);
|
logpath = xbps_xasprintf("%s/deps/%s.txt", LogDir, item->pkgn);
|
||||||
(void)remove(logpath);
|
(void)remove(logpath);
|
||||||
free(logpath);
|
free(logpath);
|
||||||
logpath = xbps_xasprintf("%s/skipped/%s", LogDir, item->pkgn);
|
logpath = xbps_xasprintf("%s/skipped/%s.txt", LogDir, item->pkgn);
|
||||||
(void)remove(logpath);
|
(void)remove(logpath);
|
||||||
free(logpath);
|
free(logpath);
|
||||||
logpath = xbps_xasprintf("%s/run/%s", LogDir, item->pkgn);
|
logpath = xbps_xasprintf("%s/run/%s.txt", LogDir, item->pkgn);
|
||||||
|
|
||||||
item->pid = fork();
|
item->pid = fork();
|
||||||
if (item->pid == 0) {
|
if (item->pid == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user