aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-03-22 16:31:13 +0000
committermerakor <cem@ckyln.com>2020-03-22 16:31:13 +0000
commit0331a2fd05887c849d7eb003eb9b92106c7747ed (patch)
tree0ba97fdb48c4a61815f8d960acbcca23be16d9fb /kiss
parent5dea86f9978cff2e37fa3678746a64f15878ea62 (diff)
downloadcpt-0331a2fd05887c849d7eb003eb9b92106c7747ed.tar.gz
kiss: lint packages sooner
FossilOrigin-Name: 1f8ef9818a854c859f610b3700fca2b733a4d9336dde5b399c769d7696a8ca7a
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss7
1 files changed, 3 insertions, 4 deletions
diff --git a/kiss b/kiss
index f549154..48c1bde 100755
--- a/kiss
+++ b/kiss
@@ -324,8 +324,6 @@ pkg_extract() {
pkg_depends() {
# Resolve all dependencies and generate an ordered list.
- repo_dir=$(pkg_find "$1")
-
# This does a depth-first search. The deepest dependencies are
# listed first and then the parents in reverse order.
contains "$deps" "$1" || {
@@ -337,7 +335,7 @@ pkg_depends() {
# Recurse through the dependencies of the child packages.
while read -r dep _ || [ "$dep" ]; do
[ "${dep##\#*}" ] && pkg_depends "$dep"
- done 2>/dev/null < "$repo_dir/depends" ||:
+ done 2>/dev/null < "$(pkg_find "$1")/depends" ||:
# After child dependencies are added to the list,
# add the package which depends on them.
@@ -556,6 +554,8 @@ pkg_build() {
log "Checking to see if any dependencies have already been built"
log "Installing any pre-built dependencies"
+ for pkg; do pkg_lint "$pkg"; done
+
# Install any pre-built dependencies if they exist in the binary
# directory and are up to date.
for pkg; do
@@ -573,7 +573,6 @@ pkg_build() {
}
done
- for pkg; do pkg_lint "$pkg"; done
for pkg; do pkg_sources "$pkg"; done
pkg_verify "$@"