forked from kiss-community/kiss
kiss: Fix log naming. Closes #102
This commit is contained in:
parent
1ce24cbb7f
commit
b79805e48a
6
kiss
6
kiss
@ -569,11 +569,11 @@ pkg_build() {
|
|||||||
log "$pkg" "Build failed"
|
log "$pkg" "Build failed"
|
||||||
pkg_clean
|
pkg_clean
|
||||||
kill 0
|
kill 0
|
||||||
} } 2>&1 | tee "$log_dir/$pkg-$pid-$time" > /dev/tty
|
} } 2>&1 | tee "$log_dir/$pkg-$time-$pid" > /dev/tty
|
||||||
|
|
||||||
# Delete the log file if the build succeeded to prevent
|
# Delete the log file if the build succeeded to prevent
|
||||||
# the directory from filling very quickly with useless logs.
|
# the directory from filling very quickly with useless logs.
|
||||||
[ "$KISS_DEBUG" = 1 ] || rm -f "$log_dir/$pkg-$pid-$time"
|
[ "$KISS_DEBUG" = 1 ] || rm -f "$log_dir/$pkg-$time-$pid"
|
||||||
|
|
||||||
# Copy the repository files to the package directory.
|
# Copy the repository files to the package directory.
|
||||||
# This acts as the database entry.
|
# This acts as the database entry.
|
||||||
@ -1304,7 +1304,7 @@ main() {
|
|||||||
|
|
||||||
# Store the date and time of script invocation to be used as the name
|
# Store the date and time of script invocation to be used as the name
|
||||||
# of the log files the package manager creates uring builds.
|
# of the log files the package manager creates uring builds.
|
||||||
time=$(date '+%d-%m-%Y-%H:%M')
|
time=$(date '+%Y-%m-%d-%H:%M')
|
||||||
|
|
||||||
# This allows for automatic setup of a KISS chroot and will
|
# This allows for automatic setup of a KISS chroot and will
|
||||||
# do nothing on a normal system.
|
# do nothing on a normal system.
|
||||||
|
Loading…
Reference in New Issue
Block a user