~ubuntu-branches/ubuntu/vivid/dpkg/vivid

« back to all changes in this revision

Viewing changes to scripts/dpkg-source.pl

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2014-04-21 18:14:10 UTC
  • mfrom: (1.6.8 sid)
  • Revision ID: package-import@ubuntu.com-20140421181410-94kvb2zodjd2og32
Tags: 1.17.7ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - Allow -fstack-protector on arm64 now that GCC and glibc support it.
  - Change native source version/format mismatch errors into warnings
    until the dust settles on Debian bug 737634 about override options.
  - Add DPKG_UNTRANSLATED_MESSAGES environment check so that higher-level
    tools can get untranslated dpkg terminal log messages while at the
    same time having translated debconf prompts.
  - Special-case arm{el,hf} ELF objects in Shlibs/Objdump.pm for multilib.
  - Map unqualified package names of multiarch-same packages to the native
    arch instead of throwing an error, so that we don't break on upgrade
    when there are unqualified names stored in the dpkg trigger database.
  - Add logic to the postinst to `dpkg --add-architecture i386' on new
    installs on amd64, mimicking our previous behaviour with the conffile.
  - Apply a workaround from mvo to consider RC packages as multiarch,
    during the dpkg consistency checks. (see LP: 1015567 and 1057367).
* Drop obsolete migration code and guards from pre-trusty dpkg versions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
 
60
60
my $build_format;
61
61
my %options = (
62
 
    # Compression related
63
 
    compression => compression_get_default(),
64
 
    comp_level => compression_get_default_level(),
65
 
    comp_ext => compression_get_property(compression_get_default(), 'file_ext'),
66
62
    # Ignore files
67
63
    tar_ignore => [],
68
64
    diff_ignore_regex => '',
149
145
    } elsif (m/^-(?:Z|-compression=)(.*)$/) {
150
146
        my $compression = $1;
151
147
        $options{compression} = $compression;
152
 
        $options{comp_ext} = compression_get_property($compression, 'file_ext');
153
148
        usageerr(_g('%s is not a supported compression'), $compression)
154
149
            unless compression_is_supported($compression);
155
150
        compression_set_default($compression);
272
267
        my $prio = $pkg->{'Priority'} || $src_prio;
273
268
        my $type = $pkg->{'Package-Type'} ||
274
269
                $pkg->get_custom_field('Package-Type') || 'deb';
275
 
        push @pkglist, sprintf('%s %s %s %s', $p, $type, $sect, $prio);
276
 
        push(@binarypackages,$p);
 
270
        my $arch = $pkg->{'Architecture'};
 
271
        my $profile = $pkg->{'Build-Profiles'};
 
272
 
 
273
        my $pkg_summary = sprintf('%s %s %s %s', $p, $type, $sect, $prio);
 
274
 
 
275
        $pkg_summary .= ' arch=' . join ',', split /\s+/, $arch;
 
276
        $pkg_summary .= ' profile=' . join ',', split /\s+/, $profile
 
277
            if defined $profile;
 
278
 
 
279
        push @pkglist, $pkg_summary;
 
280
        push @binarypackages, $p;
277
281
        foreach (keys %{$pkg}) {
278
282
            my $v = $pkg->{$_};
279
283
            if (m/^Architecture$/) {