~ubuntu-branches/ubuntu/precise/devscripts/precise

« back to all changes in this revision

Viewing changes to scripts/debuild.pl

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2011-07-12 18:47:47 UTC
  • Revision ID: james.westby@ubuntu.com-20110712184747-1fw6ck601qei9wd0
Tags: 2.11.0ubuntu3

* Replace the change of the previous upload with Debian's implementation:
* debuild: Call dpkg-source --before-build/--after-build when emulating
  dpkg-buildpackage.  (Closes: #628481)

Show diffs side-by-side

added added

removed removed

Lines of Context:
787
787
    my $compression='';
788
788
    my $comp_level='';
789
789
 
 
790
    my $dirn = basename(cwd());
 
791
 
790
792
    # and one for us
791
793
    my @debsign_opts = ();
792
794
    # and one for dpkg-cross if needed
1075
1077
            }
1076
1078
        }
1077
1079
 
 
1080
        chdir '..' or fatal "can't chdir ..: $!";
 
1081
        system_withecho('dpkg-source', '--before-build', $dirn);
 
1082
        chdir $dirn or fatal "can't chdir $dirn: $!";
 
1083
 
1078
1084
        # First dpkg-buildpackage action: run dpkg-checkbuilddeps
1079
1085
        if ($checkbuilddep) {
1080
1086
            if ($binarytarget eq 'binary-arch') {
1108
1114
 
1109
1115
        # Next dpkg-buildpackage action: dpkg-source
1110
1116
        if (! $binaryonly) {
1111
 
            my $dirn = basename(cwd());
1112
1117
            my @cmd = (qw(dpkg-source));
1113
1118
            push @cmd, @passopts;
1114
1119
            push @cmd, $diffignore if $diffignore;
1188
1193
            }
1189
1194
        }
1190
1195
 
 
1196
        chdir '..' or fatal "can't chdir ..: $!";
 
1197
        system_withecho('dpkg-source', '--after-build', $dirn);
 
1198
        chdir $dirn or fatal "can't chdir $dirn: $!";
1191
1199
 
1192
1200
        # identify the files listed in $changes; this will be used for the
1193
1201
        # emulation of the dpkg-buildpackage fileomitted() function