From c4454269c1fca63faa3422bdbf8bdccb3f739b54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Minier?= Date: Mon, 4 Jan 2010 12:55:10 +0100 Subject: Drop useless get_control_re() control arg --- pbuilder-satisfydepends-funcs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pbuilder-satisfydepends-funcs b/pbuilder-satisfydepends-funcs index 6f31c1a..98cb806 100755 --- a/pbuilder-satisfydepends-funcs +++ b/pbuilder-satisfydepends-funcs @@ -52,10 +52,9 @@ checkbuilddep_versiondeps() { get_control_re() { # output the field which matches RE of control file in stdout. - control="$1" - re="$2" + re="$1" - cat "$control" | + cat "$DEBIAN_CONTROL" | awk ' BEGIN { source=1 } /^$/ { @@ -82,11 +81,11 @@ get_control_re() { # 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_control_re "$BD_REGEXP" } get_build_conflicts() { - get_control_re "$DEBIAN_CONTROL" "$BC_REGEXP" + get_control_re "$BC_REGEXP" } checkbuilddep_archdeps() { -- cgit v1.2.3