diff options
author | Loïc Minier <lool@dooz.org> | 2010-01-04 12:55:10 +0100 |
---|---|---|
committer | Loïc Minier <lool@dooz.org> | 2010-01-04 15:46:04 +0100 |
commit | c4454269c1fca63faa3422bdbf8bdccb3f739b54 (patch) | |
tree | 0f1ca8f7c29b78b7daf36569f6e0c234cc3d969b /pbuilder-satisfydepends-funcs | |
parent | 87e4fcc7e27e0aaac3b2615f3c03572bd64edb90 (diff) | |
download | pbuilder-c4454269c1fca63faa3422bdbf8bdccb3f739b54.tar pbuilder-c4454269c1fca63faa3422bdbf8bdccb3f739b54.tar.gz |
Drop useless get_control_re() control arg
Diffstat (limited to 'pbuilder-satisfydepends-funcs')
-rwxr-xr-x | pbuilder-satisfydepends-funcs | 9 |
1 files 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() { |