Hi! On Mon, 2015-04-06 at 16:51:42 +0200, Daniel Dehennin wrote: > Package: libdpkg-perl > Version: 1.17.24 > Severity: wishlist > File: /usr/share/perl5/Dpkg/Control/Info.pm
> 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: I agree that the ->new interface for Dpkg::Control::Info is annoying and inconsistent with the other classes in the library, and should be fixed at least out of consistency. So I'm going to fix this in two ways. One to add support to that constructor (and the Dpkg::Substvar one) to take either a scalar or a hash as argument. And if the hash has a filename => undef, then it will not load the file. Probably deprecate the sclar form in the future. And by changing Dpkg::Interface::Storable's load()/save() to allow passing an IO handle to the method, so that one can do something like: my $ci = Dpkg::Control::Info->new($fh); $ci->load($fh); Does this sound good? Thanks, Guillem -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org