diff options
author | Guillem Jover <guillem@debian.org> | 2018-10-23 02:58:56 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2019-01-15 03:42:38 +0100 |
commit | 853f59ec0468f72fa29811a8fe48fad91fab6083 (patch) | |
tree | 5b9db4aade1b54a79048994a98a62f65ceb4e983 /scripts/Dpkg/Control/Info.pm | |
parent | dc87694fb736e004815350245a0f6503fb29081b (diff) | |
download | dpkg-853f59ec0468f72fa29811a8fe48fad91fab6083.tar.gz |
perl: Fix POD for Dpkg::Interface::Storable derived method implementations
Document inherited methods. Document the return values. Note which
arguments are optional. Reorder methods by their position in the stack.
Diffstat (limited to 'scripts/Dpkg/Control/Info.pm')
-rw-r--r-- | scripts/Dpkg/Control/Info.pm | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/scripts/Dpkg/Control/Info.pm b/scripts/Dpkg/Control/Info.pm index a5eae8732..9b07eedbe 100644 --- a/scripts/Dpkg/Control/Info.pm +++ b/scripts/Dpkg/Control/Info.pm @@ -90,11 +90,6 @@ sub reset { $self->{packages} = []; } -=item $c->load($file) - -Load the content of $file. Exits in case of errors. If file is "-", it -loads from the standard input. - =item $c->parse($fh, $description) Parse a control file from the given filehandle. Exits in case of errors. @@ -129,6 +124,11 @@ sub parse { } } +=item $c->load($file) + +Load the content of $file. Exits in case of errors. If file is "-", it +loads from the standard input. + =item $c->[0] =item $c->get_source() @@ -182,9 +182,10 @@ sub get_packages { return @{$self->{packages}}; } -=item $c->output($filehandle) +=item $str = $c->output([$fh]) -Dump the content into a filehandle. +Return the content info into a string. If $fh is specified print it into +the filehandle. =cut |