forked from kiss-community/kiss
kiss: Remove tarball earlier.
This commit is contained in:
parent
ee95bc1e1c
commit
d67048d4f8
5
kiss
5
kiss
@ -178,6 +178,7 @@ pkg_install() {
|
|||||||
[ -f "$bin_dir/$pkg" ] || args b "$name"
|
[ -f "$bin_dir/$pkg" ] || args b "$name"
|
||||||
|
|
||||||
pkg_conflicts
|
pkg_conflicts
|
||||||
|
tar pxf "$bin_dir/$pkg" -C "$tar_dir/" || die "Failed to extract tarball."
|
||||||
|
|
||||||
# Create a backup of 'mv', 'mkdir' and 'find' so they aren't removed
|
# Create a backup of 'mv', 'mkdir' and 'find' so they aren't removed
|
||||||
# during package removal.
|
# during package removal.
|
||||||
@ -188,8 +189,6 @@ pkg_install() {
|
|||||||
log "Removing previous version of package if it exists."
|
log "Removing previous version of package if it exists."
|
||||||
pkg_remove
|
pkg_remove
|
||||||
|
|
||||||
tar pxf "$bin_dir/$pkg" -C "$tar_dir/"
|
|
||||||
|
|
||||||
cd "$tar_dir" || die "Aborting due to tar error."
|
cd "$tar_dir" || die "Aborting due to tar error."
|
||||||
|
|
||||||
# Optimization: Only find the deepest directories.
|
# Optimization: Only find the deepest directories.
|
||||||
@ -234,7 +233,7 @@ pkg_remove() {
|
|||||||
# Use the backup of 'rm' to remove 'rmdir' and itself.
|
# Use the backup of 'rm' to remove 'rmdir' and itself.
|
||||||
"$cac_dir/rm" "$cac_dir/rmdir" "$cac_dir/rm"
|
"$cac_dir/rm" "$cac_dir/rmdir" "$cac_dir/rm"
|
||||||
|
|
||||||
log "Removed ${pkg%.tar.gz}"
|
log "Removed ${1:-name}."
|
||||||
}
|
}
|
||||||
|
|
||||||
pkg_updates() {
|
pkg_updates() {
|
||||||
|
Loading…
Reference in New Issue
Block a user