This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=80814ea23c6bba4998b8fa0fd296f0877268552d

commit 80814ea23c6bba4998b8fa0fd296f0877268552d
Author: Guillem Jover <[email protected]>
AuthorDate: Thu Dec 22 23:37:43 2022 +0100

    Dpkg::Compression: Deprecate compression_get_property()
    
    This function does not have a very nice interface. With the newly added
    direct getters/setters, this function can be replaced and deprecated.
    
    It will be removed in the future with the module bump to 3.00.
---
 scripts/Dpkg/Compression.pm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/scripts/Dpkg/Compression.pm b/scripts/Dpkg/Compression.pm
index deb5d5e0b..a64c87b36 100644
--- a/scripts/Dpkg/Compression.pm
+++ b/scripts/Dpkg/Compression.pm
@@ -142,10 +142,17 @@ properties currently include "file_ext" for the file 
extension,
 "comp_prog" for the name of the compression program and "decomp_prog" for
 the name of the decompression program.
 
+This function is deprecated, please switch to one of the new specialized
+getters instead.
+
 =cut
 
 sub compression_get_property {
     my ($comp, $property) = @_;
+
+    warnings::warnif('deprecated',
+        'Dpkg::Compression::compression_get_property() is deprecated, ' .
+        'use one of the specialized getters instead');
     return unless compression_is_supported($comp);
     return $COMP{$comp}{$property} if exists $COMP{$comp}{$property};
     return;
@@ -362,6 +369,8 @@ New functions: compression_get_file_extension(), 
compression_get_level(),
 compression_set_level(), compression_get_cmdline_compress() and
 compression_get_cmdline_decompress().
 
+Deprecated functions: compression_get_property().
+
 =head2 Version 2.00 (dpkg 1.20.0)
 
 Hide variables: $default_compression, $default_compression_level

-- 
Dpkg.Org's dpkg

Reply via email to