diff options
Diffstat (limited to 'scripts/Dpkg/Source/Package.pm')
-rw-r--r-- | scripts/Dpkg/Source/Package.pm | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/scripts/Dpkg/Source/Package.pm b/scripts/Dpkg/Source/Package.pm index 3427383..3d336a1 100644 --- a/scripts/Dpkg/Source/Package.pm +++ b/scripts/Dpkg/Source/Package.pm @@ -29,7 +29,7 @@ is the one that supports the extraction of the source package. =cut -package Dpkg::Source::Package 2.02; +package Dpkg::Source::Package 2.03; use strict; use warnings; @@ -389,6 +389,21 @@ sub get_basename { return $f->{'Source'} . '_' . $vs; } +=item $p->get_basedirname() + +Returns the default base directory name for the package. + +=cut + +sub get_basedirname { + my $self = shift; + + my $dirname = $self->get_basename(); + $dirname =~ s/_/-/; + + return $dirname; +} + sub find_original_tarballs { my ($self, %opts) = @_; $opts{extension} //= compression_get_file_extension_regex(); @@ -699,17 +714,21 @@ sub write_dsc { =head1 CHANGES +=head2 Version 2.03 (dpkg 1.22.7) + +New method: $p->get_basedirname(). + =head2 Version 2.02 (dpkg 1.21.10) -New method: armor_original_tarball_signature(). +New method: $p->armor_original_tarball_signature(). =head2 Version 2.01 (dpkg 1.20.1) -New method: get_upstream_signing_key(). +New method: $p->get_upstream_signing_key(). =head2 Version 2.00 (dpkg 1.20.0) -New method: check_original_tarball_signature(). +New method: $p->check_original_tarball_signature(). Remove variable: $diff_ignore_default_regexp. @@ -721,12 +740,12 @@ New option: format in new(). =head2 Version 1.02 (dpkg 1.18.7) -New option: require_strong_checksums in check_checksums(). +New option: require_strong_checksums in $p->check_checksums(). =head2 Version 1.01 (dpkg 1.17.2) -New functions: get_default_diff_ignore_regex(), set_default_diff_ignore_regex(), -get_default_tar_ignore_pattern() +New functions: $p->get_default_diff_ignore_regex(), +$p->set_default_diff_ignore_regex(), $p->get_default_tar_ignore_pattern(). Deprecated variables: $diff_ignore_default_regexp, @tar_ignore_default_pattern |