blob: 04fd0eef55db2b5640253bb45edd4157c91f68aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
From f7b19c3454c56c25bc13a8ffbbcc544a9337cca7 Mon Sep 17 00:00:00 2001
From: William Pitcock <nenolod@dereferenced.org>
Date: Fri, 10 Nov 2017 21:34:27 +0000
Subject: [PATCH] abuild: rootbld: run testsuites if requested, also handle
package() only builds
---
abuild.in | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/abuild.in b/abuild.in
index 521d530..bcf3994 100644
--- a/abuild.in
+++ b/abuild.in
@@ -2074,8 +2074,18 @@ checksum() {
}
rootbld_actions() {
- local part
- for part in symlinksrc unpack prepare build rootpkg; do
+ local part _build=build _check=check_fakeroot
+ if ! is_function package; then
+ # if package() is missing then build is called from rootpkg
+ _build=true
+ fi
+ if options_has "!checkroot"; then
+ _check=check
+ fi
+ if ! want_check; then
+ _check=true
+ fi
+ for part in symlinksrc unpack prepare $_build $_check rootpkg; do
runpart $part
done
}
--
2.14.2
|