~ubuntu-branches/ubuntu/oneiric/sbuild/oneiric

« back to all changes in this revision

Viewing changes to bin/sbuild-apt

  • Committer: Bazaar Package Importer
  • Author(s): Lorenzo De Liso
  • Date: 2011-05-01 16:55:16 UTC
  • mfrom: (8.1.19 upstream) (3.3.17 sid)
  • Revision ID: james.westby@ubuntu.com-20110501165516-8g3uwrnhv2bzjt8y
Tags: 0.62.2-1ubuntu1
* Merge from debian unstable, remaining changes:
  - debian/patches/do-not-install-debfoster-into-chroots.patch: 
    do not install debfoster into the chroots because it is in universe and 
    not needed for package building itself.
  - debian/patches/run-pre-build-hooks-as-root.patch: 
    run pre-build hooks as root (Closes: #607228)
* Now that the package uses a patch system, don't modify the files directly;
  instead, put the changes in the respective patches and add the DEP-3
  patch tagging guidelines to them.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
use Sbuild::Utility qw(setup cleanup);
27
27
use Sbuild::Conf qw();
28
28
use Sbuild::OptionsBase;
 
29
use Sbuild::InternalResolver;
 
30
use Sbuild::ChrootRoot;
29
31
 
30
32
my $conf = Sbuild::Conf::new();
31
33
exit 1 if !defined($conf);
49
51
}
50
52
 
51
53
my $session = setup('source', $chroot, $conf) or die "Chroot setup failed";
52
 
 
53
 
$session->run_apt_command(
 
54
my $host = Sbuild::ChrootRoot->new($conf);
 
55
$host->begin_session() or die "Chroot setup (host) failed";
 
56
 
 
57
my $resolver = Sbuild::InternalResolver->new($conf, $session, $host);
 
58
$resolver->setup();
 
59
 
 
60
$resolver->run_apt_command(
54
61
    { COMMAND => [$command, @ARGV],
55
62
      ENV => {'DEBIAN_FRONTEND' => 'noninteractive'},
56
63
      USER => 'root',