summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-02-07 15:29:53 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-02-07 15:29:53 +0000
commite0217ee520949f51aef0f220d33d44bb3c9aa82c (patch)
tree14e7867321b2e3911e41c302ff76b596c11d1e62 /abuild.in
parentdb6285750515deeaca43d4109a958af15052b41d (diff)
downloadabuild-e0217ee520949f51aef0f220d33d44bb3c9aa82c.tar.gz
abuild-e0217ee520949f51aef0f220d33d44bb3c9aa82c.tar.bz2
abuild-e0217ee520949f51aef0f220d33d44bb3c9aa82c.tar.xz
abuild-e0217ee520949f51aef0f220d33d44bb3c9aa82c.zip
abuild: update abuild repo index when cleaning packages
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/abuild.in b/abuild.in
index 3082bba..a7a993d 100755
--- a/abuild.in
+++ b/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
}