Package: libdpkg-perl
Version: 1.17.24
Severity: wishlist
File: /usr/share/perl5/Dpkg/Control/Info.pm

Dear Maintainer,

I'm creating a little tool around Dpkg::* to check the status of
packaging in a Git repository.

My code actually need to change the current branch to read
debian/changelog but it can not work on unclean working tree.

I would like to use Dpkg::Control::Info->parse like the following:

#+begin_src perl
use Git::Repository;
my $repo = Git::Repository->new(work_tree => '/some/where');

my $control = Dpkg::Control::Info->new(load => 0);
my $control_ref = $self->dist_branch . ':debian/control';

my $control_fh = $repo->command(show => $control_ref)->stdout;
$control->parse($control_fh);
#+end_src

Regards.

-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (90, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libdpkg-perl depends on:
ii  dpkg              1.17.24
ii  libtimedate-perl  2.3000-2
ii  perl              5.20.2-2

Versions of packages libdpkg-perl recommends:
ii  bzip2                   1.0.6-7+b3
ii  libfile-fcntllock-perl  0.22-1+b1
ii  xz-utils                5.1.1alpha+20120614-2+b3

Versions of packages libdpkg-perl suggests:
ii  binutils              2.25-6
ii  debian-keyring        2015.03.04
ii  gcc [c-compiler]      4:4.9.2-2
ii  gcc-4.8 [c-compiler]  4.8.4-1
ii  gcc-4.9 [c-compiler]  4.9.2-10
ii  gnupg                 1.4.18-7
ii  gnupg2                2.0.26-6
ii  gpgv                  1.4.18-7
ii  patch                 2.7.5-1

-- no debconf information

-- 
Daniel Dehennin
Récupérer ma clef GPG: gpg --recv-keys 0xCC1E9E5B7A6FE2DF
Fingerprint: 3E69 014E 5C23 50E8 9ED6  2AAD CC1E 9E5B 7A6F E2DF

Attachment: signature.asc
Description: PGP signature

Reply via email to