~ubuntu-branches/ubuntu/saucy/sbuild/saucy-proposed

« back to all changes in this revision

Viewing changes to debian/patches/run-lintian-inside-chroot.patch

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2012-02-21 22:55:48 UTC
  • Revision ID: package-import@ubuntu.com-20120221225548-8a720bl8t5ccwpt6
Tags: 0.62.6-1ubuntu2
* Run lintian from within the build chroot, Closes: #626361
* Refresh patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
=== modified file 'lib/Sbuild/Build.pm'
 
2
--- a/lib/Sbuild/Build.pm
 
3
+++ b/lib/Sbuild/Build.pm
 
4
@@ -1139,12 +1139,17 @@ sub run_lintian {
 
5
 
 
6
     $self->log_subsubsection("lintian");
 
7
 
 
8
+    my $resolver = $self->get('Dependency Resolver');
 
9
     my $lintian = $self->get_conf('LINTIAN');
 
10
     my @lintian_command = ($lintian);
 
11
     push @lintian_command, @{$self->get_conf('LINTIAN_OPTIONS')} if
 
12
         ($self->get_conf('LINTIAN_OPTIONS'));
 
13
     push @lintian_command, $self->get('Changes File');
 
14
-    $self->get('Host')->run_command(
 
15
+
 
16
+    $resolver->add_dependencies('LINTIAN', 'lintian');
 
17
+    return 1 unless $resolver->install_deps('lintian', 'LINTIAN');
 
18
+
 
19
+    $self->get('Session')->run_command(
 
20
         { COMMAND => \@lintian_command,
 
21
           PRIORITY => 0,
 
22
         });