Commit e0217ee5 authored by Natanael Copa's avatar Natanael Copa

abuild: update abuild repo index when cleaning packages

parent db628575
...@@ -500,6 +500,7 @@ cleanpkg() { ...@@ -500,6 +500,7 @@ cleanpkg() {
"$abuildrepo"/$p.apk "$abuildrepo"/*/$p.apk "$abuildrepo"/$p.apk "$abuildrepo"/*/$p.apk
done done
# remove given packages from index # remove given packages from index
update_abuildrepo_index
} }
# clean all packages except current # clean all packages except current
...@@ -1136,13 +1137,16 @@ mklinks_abuildrepo() { ...@@ -1136,13 +1137,16 @@ mklinks_abuildrepo() {
done done
} }
update_abuildrepo() { build_abuildrepo() {
local d apk local d apk
if ! apk_up2date || [ -n "$force" ]; then if ! apk_up2date || [ -n "$force" ]; then
sanitycheck && builddeps && clean && fetch && unpack \ sanitycheck && builddeps && clean && fetch && unpack \
&& prepare && mkusers && rootpkg || return 1 && prepare && mkusers && rootpkg || return 1
fi fi
update_abuildrepo_index
}
update_abuildrepo_index() {
clean_abuildrepo clean_abuildrepo
mklinks_abuildrepo mklinks_abuildrepo
...@@ -1346,7 +1350,7 @@ up2date() { ...@@ -1346,7 +1350,7 @@ up2date() {
# rebuild package and abuildrepo index if needed # rebuild package and abuildrepo index if needed
abuildindex() { abuildindex() {
up2date && return 0 up2date && return 0
update_abuildrepo build_abuildrepo
} }
# source all APKBUILDs and output: # source all APKBUILDs and output:
...@@ -1650,7 +1654,7 @@ all() { ...@@ -1650,7 +1654,7 @@ all() {
if up2date && [ -z "$force" ]; then if up2date && [ -z "$force" ]; then
msg "Package is up to date" msg "Package is up to date"
else else
update_abuildrepo build_abuildrepo
fi fi
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment