summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChloe Kudryavtsev <toast@toastin.space>2018-12-08 13:22:43 -0500
committerNatanael Copa <ncopa@alpinelinux.org>2019-04-03 15:57:14 +0000
commit30d296ddb38d3f6f7755003e34495f78d710a567 (patch)
treeb45f084a000852765070c3c3c65f0b0d62fdebf9
parent8fbbffd201a28a06804c7f6d3a2b5cd948c6ce07 (diff)
downloadabuild-30d296ddb38d3f6f7755003e34495f78d710a567.tar.bz2
abuild-30d296ddb38d3f6f7755003e34495f78d710a567.tar.xz
Make clean() use cleanup()
Avoid DRY issues, and increase consistency.
-rw-r--r--abuild.in5
1 files changed, 2 insertions, 3 deletions
diff --git a/abuild.in b/abuild.in
index d2cf0d8..74340b0 100644
--- a/abuild.in
+++ b/abuild.in
@@ -472,9 +472,8 @@ unpack() {
# cleanup source and package dir
clean() {
- msg "Cleaning temporary build dirs..."
- rm -rf "$srcdir"
- rm -rf "$pkgbasedir"
+ cleanup srcdir
+ cleanup pkgdir
}
# cleanup fetched sources