Explorar el Código

Dpkg::Conf: Document obsolete functions

This fixes a Pod::Coverage issue.
Guillem Jover hace 9 años
padre
commit
fa532fbc4b
Se han modificado 2 ficheros con 8 adiciones y 2 borrados
  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>.
     - Document the behavior for consecutive calls to Dpkg perl module parse()
       methods. Prompted by Johannes Schauer <josch@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

+ 7 - 2
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';