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

« back to all changes in this revision

Viewing changes to lib/Sbuild/Build.pm

  • Committer: Bazaar Package Importer
  • Author(s): Angel Abad
  • Date: 2011-07-19 18:16:22 UTC
  • mfrom: (8.1.22 upstream) (3.3.20 sid)
  • Revision ID: james.westby@ubuntu.com-20110719181622-91fqa4k02ggulcrm
Tags: 0.62.5-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

Show diffs side-by-side

added added

removed removed

Lines of Context:
180
180
    my ($pkg, $version) = split /_/, $pkgv;
181
181
    my $pver = Dpkg::Version->new($version, check => 1);
182
182
    return if (!defined($pkg) || !defined($version) || !defined($pver));
183
 
    my ($o_epoch, $o_version, $o_revision);
184
 
    $o_epoch = $pver->epoch();
 
183
    my ($o_version, $o_revision);
185
184
    $o_version = $pver->version();
186
185
    $o_revision = $pver->revision();
 
186
    $o_revision = "" if $pver->{'no_revision'};
187
187
 
188
188
    # Original version (no binNMU or other addition)
189
189
    my $oversion = $version;
201
201
    return if (!defined($bver));
202
202
    my ($b_epoch, $b_version, $b_revision);
203
203
    $b_epoch = $bver->epoch();
 
204
    $b_epoch = "" if $bver->{'no_epoch'};
204
205
    $b_version = $bver->version();
205
206
    $b_revision = $bver->revision();
 
207
    $b_revision = "" if $bver->{'no_revision'};
206
208
 
207
209
    # Version with binNMU or other additions and stripped epoch
208
210
    my $sversion = $b_version;