From dba6e3e7b0c66823103b2197728f9458700eefcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Minier?= Date: Mon, 4 Jan 2010 12:44:08 +0100 Subject: 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. --- pbuilder-satisfydepends-funcs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'pbuilder-satisfydepends-funcs') 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" -- cgit v1.2.3