+ def satisfy_dependencies_string(tb, deps, what):
+ # Must have called Binaries.configure_apt
+ debug('dependencies: %s: satisfying %s' % (what,deps))
+ dsc = TemporaryFile('deps.dsc')
+ print >>open(dsc.write(),'w'), 'Build-Depends: ', deps, '\n\n'
+ # pbuilder-satisfydepends has a bug where it ignores the
+ # Build-Depends if it's the last line in the dsc (#635696)
+ tb.satisfy_dependencies_dsc(dsc, what)
+
+ def satisfy_dependencies_dsc(tb, dsc, what):
+ # Must have called Binaries.configure_apt
+ cmdl = [ '/usr/lib/pbuilder/pbuilder-satisfydepends-classic',
+ '--binary-all', # --check-key
+ '--internal-chrootexec',tb.ec_auxverbscript.read(),
+ '-c',dsc.read()
+ ]
+ # The --internal-chrootexec option is really handy but
+ # perhaps we are not supposed to use it ? See also #635697.
+ debug('dependencies: %s: running %s' % (what,`cmdl`))
+ rc = subprocess.call(cmdl, stdout=None, stderr=None)
+ if rc: badpkg('dependency install failed, exit code %d' % rc)
+