ソースを参照

Dpkg::Conf: Document obsolete functions

This fixes a Pod::Coverage issue.
Guillem Jover 9 年 前
コミット
fa532fbc4b
共有2 個のファイルを変更した8 個の追加2 個の削除を含む
  1. 1 0
      debian/changelog
  2. 7 2
      scripts/Dpkg/Conf.pm

+ 1 - 0
debian/changelog

@@ -103,6 +103,7 @@ dpkg (1.18.11) UNRELEASED; urgency=medium
       verify digests too. Prompted by Johannes Schauer <josch@debian.org>.
       verify digests too. Prompted by Johannes Schauer <josch@debian.org>.
     - Document the behavior for consecutive calls to Dpkg perl module parse()
     - Document the behavior for consecutive calls to Dpkg perl module parse()
       methods. Prompted by Johannes Schauer <josch@debian.org>.
       methods. Prompted by Johannes Schauer <josch@debian.org>.
+    - Document obsolete functions in Dpkg::Conf.
   * Test suite:
   * Test suite:
     - Make test main function a TEST_ENTRY macro. This avoids confusing
     - Make test main function a TEST_ENTRY macro. This avoids confusing
       coverage programs, as the file that actually contains the main function
       coverage programs, as the file that actually contains the main function

+ 7 - 2
scripts/Dpkg/Conf.pm

@@ -85,8 +85,13 @@ sub get_options {
     return @{$self->{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 {
 sub get {
     croak 'obsolete function, use get_options instead';
     croak 'obsolete function, use get_options instead';