use Dpkg::Version qw(check_version);
use Dpkg::Exit;
use Dpkg::Source::Functions qw(erasedir);
-use Dpkg::Source::Package::V1_0::native;
+use Dpkg::Source::Package::V3_0::native;
use Dpkg::Path qw(check_files_are_the_same);
use POSIX;
my $native = $difffile ? 0 : 1;
if ($native and ($tarfile =~ /\.orig\.tar\.gz$/)) {
warning(_g("native package with .orig.tar"));
- $native = 0; # V1_0::native doesn't handle orig.tar
+ $native = 0; # V3_0::native doesn't handle orig.tar
}
if ($native) {
- Dpkg::Source::Package::V1_0::native::do_extract($self, $newdirectory);
+ Dpkg::Source::Package::V3_0::native::do_extract($self, $newdirectory);
} else {
my $expectprefix = $newdirectory;
$expectprefix .= '.orig';
}
if ($sourcestyle eq "n") {
- Dpkg::Source::Package::V1_0::native::build($self, $dir);
+ Dpkg::Source::Package::V3_0::native::do_build($self, $dir);
} elsif ($sourcestyle =~ m/[nurUR]/) {
if (stat($tarname)) {
unless ($sourcestyle =~ m/[nUR]/) {
$sourcepackage, $tarname);
}
- $self->add_file($tarname);
+ $self->add_file($tarname) if $tarname;
if ($sourcestyle =~ m/[kpKP]/) {
if (stat($origdir)) {
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-package Dpkg::Source::Package::V1_0::native;
+package Dpkg::Source::Package::V3_0::native;
use strict;
use warnings;
$self->add_file($tarname);
+ # For backward compatibility, drop version to 1.0 if we can
if ($self->{'options'}{'compression'} eq "gzip") {
$self->{'fields'}{'Format'} = "1.0";
- } else {
- $self->{'fields'}{'Format'} = "1.0 (native)";
}
}
Dpkg/Source/Functions.pm \
Dpkg/Source/Package.pm \
Dpkg/Source/Package/V1_0.pm \
- Dpkg/Source/Package/V1_0/native.pm \
Dpkg/Source/Package/V2_0.pm \
+ Dpkg/Source/Package/V3_0/native.pm \
Dpkg/Source/Package/V3_0/git.pm \
Dpkg/Source/Patch.pm \
Dpkg.pm
{arch}
);
-my @build_formats = ("1.0", "1.0 (native)");
+my @build_formats = ("1.0", "3.0 (native)");
my %options = (
# Compression related
compression => 'gzip',
scripts/Dpkg/Source/Patch.pm
scripts/Dpkg/Source/Package.pm
scripts/Dpkg/Source/Package/V1_0.pm
-scripts/Dpkg/Source/Package/V1_0/native.pm
scripts/Dpkg/Source/Package/V2_0.pm
+scripts/Dpkg/Source/Package/V3_0/native.pm
scripts/Dpkg/Source/Package/V3_0/git.pm
scripts/Dpkg/Substvars.pm
scripts/Dpkg/Vars.pm