mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-08 15:50:38 +00:00
abuild: update abuild repo index when cleaning packages
This commit is contained in:
parent
db62857505
commit
e0217ee520
10
abuild.in
10
abuild.in
@ -500,6 +500,7 @@ cleanpkg() {
|
||||
"$abuildrepo"/$p.apk "$abuildrepo"/*/$p.apk
|
||||
done
|
||||
# remove given packages from index
|
||||
update_abuildrepo_index
|
||||
}
|
||||
|
||||
# clean all packages except current
|
||||
@ -1136,13 +1137,16 @@ mklinks_abuildrepo() {
|
||||
done
|
||||
}
|
||||
|
||||
update_abuildrepo() {
|
||||
build_abuildrepo() {
|
||||
local d apk
|
||||
if ! apk_up2date || [ -n "$force" ]; then
|
||||
sanitycheck && builddeps && clean && fetch && unpack \
|
||||
&& prepare && mkusers && rootpkg || return 1
|
||||
fi
|
||||
update_abuildrepo_index
|
||||
}
|
||||
|
||||
update_abuildrepo_index() {
|
||||
clean_abuildrepo
|
||||
mklinks_abuildrepo
|
||||
|
||||
@ -1346,7 +1350,7 @@ up2date() {
|
||||
# rebuild package and abuildrepo index if needed
|
||||
abuildindex() {
|
||||
up2date && return 0
|
||||
update_abuildrepo
|
||||
build_abuildrepo
|
||||
}
|
||||
|
||||
# source all APKBUILDs and output:
|
||||
@ -1650,7 +1654,7 @@ all() {
|
||||
if up2date && [ -z "$force" ]; then
|
||||
msg "Package is up to date"
|
||||
else
|
||||
update_abuildrepo
|
||||
build_abuildrepo
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user