Debian Codegraph @

aptitude-changelog-parser

raw ◀ ▶
Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
1 #!/usr/bin/perl
2
3 use strict;
4 use warnings;
5
6 eval {
7 require Dpkg::Changelog::Parse;
8 Dpkg::Changelog::Parse->import();
9 1;
10 } or do {
11 warn "warning: Dpkg::Changelog::Parse not present, install libdpkg-perl\n";
12 exit 0;
13 };
14
15 # Usage: aptitude-changelog-parser [<filename> [<from-version>]]
16
17 my %opts;
18 if (scalar @ARGV >= 1) {
19 $opts{file} = shift @ARGV;
20 }
21 if (scalar @ARGV == 1) {
22 $opts{from} = $ARGV[0];
23 } else {
24 $opts{all} = undef;
25 }
26
27 print join "\n", changelog_parse(format => 'rfc822', %opts);