Mail archive
alpine-devel

[alpine-devel] [PATCH 1/2] Make clean() use cleanup()

From: Chloe Kudryavtsev <toast_at_toastin.space>
Date: Sat, 8 Dec 2018 13:22:43 -0500

Avoid DRY issues, and increase consistency.
---
Patch sent in separately, as it may make sense to merge even if patch 2
is rejected.
 abuild.in | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/abuild.in b/abuild.in
index 566f528..eceb9f2 100644
--- a/abuild.in
+++ b/abuild.in
_at_@ -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
-- 
2.19.2
---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Sat Dec 08 2018 - 13:22:43 UTC