aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-satisfydepends-funcs
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2010-01-04 12:44:08 +0100
committerLoïc Minier <lool@dooz.org>2010-01-04 12:44:08 +0100
commitdba6e3e7b0c66823103b2197728f9458700eefcc (patch)
tree368b90ebcfac40aee64331f14b579ca38a4703db /pbuilder-satisfydepends-funcs
parent59429f3def6cf3e8e932da39af0bc8fb62ac97bd (diff)
downloadpbuilder-dba6e3e7b0c66823103b2197728f9458700eefcc.tar
pbuilder-dba6e3e7b0c66823103b2197728f9458700eefcc.tar.gz
Add get_build_deps() and get_build_conflicts()
Add get_build_deps() and get_build_conflicts() functions wrapping get_control_re() for BD_REGEXP and BC_REGEXP over DEBIAN_CONTROL.
Diffstat (limited to 'pbuilder-satisfydepends-funcs')
-rwxr-xr-xpbuilder-satisfydepends-funcs10
1 files changed, 10 insertions, 0 deletions
diff --git a/pbuilder-satisfydepends-funcs b/pbuilder-satisfydepends-funcs
index 876ab42..430b590 100755
--- a/pbuilder-satisfydepends-funcs
+++ b/pbuilder-satisfydepends-funcs
@@ -79,6 +79,16 @@ get_control_re() {
sed 's/^[^: ]*://'
}
+# NB: BD_REGEXP only includes Build-Depends-Indep when building binary-indep
+# packages; see pbuilder-satisfydepends-checkparams
+get_build_deps() {
+ get_control_re "$DEBIAN_CONTROL" "$BD_REGEXP"
+}
+
+get_build_conflicts() {
+ get_control_re "$DEBIAN_CONTROL" "$BC_REGEXP"
+}
+
checkbuilddep_archdeps() {
# returns FALSE on INSTALL
local INSTALLPKG="$1"