mirror of
https://codeberg.org/kiss-community/kiss
synced 2025-01-13 06:10:07 -07:00
kiss: Remove temporary file
This commit is contained in:
parent
bfce4cdcac
commit
90b4de89d9
11
kiss
11
kiss
@ -184,7 +184,7 @@ pkg_extract() {
|
|||||||
|| die "[$1] Couldn't extract ${src##*/}"
|
|| die "[$1] Couldn't extract ${src##*/}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# Local files (Any source that is non-remote is assumed to be local).
|
# Local files (Any non-remote source is assumed to be local).
|
||||||
*)
|
*)
|
||||||
if [ -f "$repo_dir/$src" ]; then
|
if [ -f "$repo_dir/$src" ]; then
|
||||||
cp -f "$repo_dir/$src" "./$dest"
|
cp -f "$repo_dir/$src" "./$dest"
|
||||||
@ -232,14 +232,9 @@ pkg_verify() {
|
|||||||
# a new set of checksums and then comparing those with the old
|
# a new set of checksums and then comparing those with the old
|
||||||
# set.
|
# set.
|
||||||
|
|
||||||
repo_dir=$(pkg_find "$1")
|
|
||||||
|
|
||||||
# Generate a second set of checksums to compare against the
|
# Generate a second set of checksums to compare against the
|
||||||
# repository's checksums for the package.
|
# repository's checksums for the package.
|
||||||
pkg_checksums "$1" > "$cac_dir/c-$1"
|
pkg_checksums "$1" | cmp -s - "$(pkg_find "$1")/checksums" || {
|
||||||
|
|
||||||
# Compare the checksums using 'cmp'.
|
|
||||||
cmp -s "$cac_dir/c-$1" "$repo_dir/checksums" || {
|
|
||||||
log "[$1] Checksum mismatch"
|
log "[$1] Checksum mismatch"
|
||||||
|
|
||||||
# Instead of dying above, log it to the terminal. Also define a
|
# Instead of dying above, log it to the terminal. Also define a
|
||||||
@ -918,7 +913,7 @@ pkg_clean() {
|
|||||||
rm -rf -- "$mak_dir" "$pkg_dir" "$tar_dir"
|
rm -rf -- "$mak_dir" "$pkg_dir" "$tar_dir"
|
||||||
|
|
||||||
# Remove temporary files.
|
# Remove temporary files.
|
||||||
set +f; rm -f "$cac_dir/c-"* "$cac_dir/m-"*
|
set +f; rm -f "$cac_dir/m-"*
|
||||||
}
|
}
|
||||||
|
|
||||||
args() {
|
args() {
|
||||||
|
Loading…
Reference in New Issue
Block a user