[dpkg] 101/187: Dpkg::Conf: Document obsolete functions

Reiner Herrmann reiner at reiner-h.de
Sun Nov 6 12:46:29 UTC 2016


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

deki-guest pushed a commit to branch master
in repository dpkg.

commit fa532fbc4bcf5d67a3e50174cb5518381a71d0b4
Author: Guillem Jover <guillem at debian.org>
Date:   Tue Sep 13 03:30:10 2016 +0200

    Dpkg::Conf: Document obsolete functions
    
    This fixes a Pod::Coverage issue.
---
 debian/changelog     | 1 +
 scripts/Dpkg/Conf.pm | 9 +++++++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 2ab1f1c..366cd57 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -103,6 +103,7 @@ dpkg (1.18.11) UNRELEASED; urgency=medium
       verify digests too. Prompted by Johannes Schauer <josch at debian.org>.
     - Document the behavior for consecutive calls to Dpkg perl module parse()
       methods. Prompted by Johannes Schauer <josch at debian.org>.
+    - Document obsolete functions in Dpkg::Conf.
   * Test suite:
     - Make test main function a TEST_ENTRY macro. This avoids confusing
       coverage programs, as the file that actually contains the main function
diff --git a/scripts/Dpkg/Conf.pm b/scripts/Dpkg/Conf.pm
index de0513f..2e27f34 100644
--- a/scripts/Dpkg/Conf.pm
+++ b/scripts/Dpkg/Conf.pm
@@ -85,8 +85,13 @@ sub get_options {
     return @{$self->{options}};
 }
 
-# These functions existed for a brief time, but do not mesh well with
-# repeated options.
+=item get()
+
+=item set()
+
+Obsolete functions, use get_options() instead. They will croak.
+
+=cut
 
 sub get {
     croak 'obsolete function, use get_options instead';

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/dpkg.git



More information about the Reproducible-commits mailing list