From 475cf4ec89d394984172dadc35f95d7edb90eaac Mon Sep 17 00:00:00 2001 From: Loïc Minier Date: Sat, 31 Mar 2007 22:47:33 +0200 Subject: * Add function get_control_re() to pbuilder-satisfydepends-funcs to extract the value of source headers from a control file. * Add function filter_arch_deps() to pbuilder-satisfydepends-aptitude to filter out arch dependencies not for a certain arch. * Source pbuilder-satisfydepends-funcs in pbuilder-satisfydepends-aptitude. * Add support for arch specific build-deps and build-conflicts to pbuilder-satisfydepends-aptitude. --- pbuilder-satisfydepends-funcs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'pbuilder-satisfydepends-funcs') diff --git a/pbuilder-satisfydepends-funcs b/pbuilder-satisfydepends-funcs index 7e4367d..0a4d181 100755 --- a/pbuilder-satisfydepends-funcs +++ b/pbuilder-satisfydepends-funcs @@ -50,6 +50,21 @@ function checkbuilddep_versiondeps () { return 1; } +get_control_re() { + control="$1" + re="$2" + + cat "$control" | + awk ' + BEGIN { source=1 } + /^$/ { source=0 } + /^Source:/ { source=1 } + /^[^ ]*:/ { p=0 } + tolower($0) ~ /^'"$re"':/ { p=1 } + { if (p && source) { print $0 } }' | + sed 's/^[^: ]*://' +} + function checkbuilddep_archdeps () { # returns FALSE on INSTALL local INSTALLPKG="$1" -- cgit v1.2.3