1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-23 15:40:07 -07:00

kiss: remove unneeded pkg_find_version

This commit is contained in:
Dylan Araps 2021-07-05 13:52:54 +03:00
parent 9fb32d0177
commit b8b11b80af
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

8
kiss
View File

@ -357,7 +357,9 @@ pkg_extract_tar_hack() {
pkg_extract() {
# Extract all source archives to the build directory and copy over any
# local repository files. NOTE: repo_dir comes from caller.
# local repository files.
#
# NOTE: repo_dir comes from caller.
# Support packages without sources. Simply do nothing.
[ -f "$repo_dir/sources" ] || return 0
@ -632,10 +634,10 @@ pkg_etcsums() {
pkg_tar() (
# Create a tarball from the built package's files. This tarball also
# contains the package's database entry.
#
# NOTE: repo_ comes from caller.
log "$1" "Creating tarball"
pkg_find_version "$1"
# Use 'cd' to avoid needing tar's '-C' flag which may not be portable
# across implementations.
cd "$pkg_dir/$1"