~ubuntu-branches/ubuntu/jaunty/sbuild/jaunty

« back to all changes in this revision

Viewing changes to bin/sbuild-apt

  • Committer: Bazaar Package Importer
  • Author(s): Nicolas Valcárcel
  • Date: 2008-05-11 17:07:58 UTC
  • mfrom: (8.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080511170758-zy3f9kr7dstetn6x
Tags: 0.57.3-1ubuntu1
* Merge from debian unstable (LP: #229374), remaining changes:
  - Sbuild.pm: If we're trying to compare versions against a provided
    package, always return "not satisfied", forcing an install attempt.
  - Modify Maintainer value to comply with Debian-Maintainer-Field Spec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
package main;
26
26
 
27
 
sub usage {
 
27
sub usage ();
 
28
 
 
29
sub usage () {
28
30
    print STDERR "Usage: $0 <chroot> apt-get|apt-cache args\n";
29
31
    exit 1;
30
32
}
43
45
 
44
46
$Sbuild::Conf::cwd = "/";
45
47
 
46
 
!setup($ARGV[0]) or die "Chroot setup failed";
 
48
my $session = setup($ARGV[0]) or die "Chroot setup failed";
47
49
 
48
50
shift @ARGV;
49
51
shift @ARGV;
50
52
my $cmd = join(' ', @ARGV);
51
53
 
52
54
$ENV{'DEBIAN_FRONTEND'} = "noninteractive";
53
 
my $status = run_apt_command($command, $cmd, "root", 1);
 
55
my $status = $session->run_apt_command($command, $cmd, "root", 1);
54
56
 
55
57
cleanup();
56
58