Skip Menu |
 

This queue is for tickets about the AppConfig CPAN distribution.

Report information
The Basics
Id: 18920
Status: open
Priority: 0/
Queue: AppConfig

People
Owner: Nobody in particular
Requestors: grousse [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.52
Fixed in: (no value)



Subject: Mysterious interaction with URPM
Download (untitled) / with headers
text/plain 460b
Run the following testcase on any hdlist.cz file (rpm package headers list, found on any mandriva packages mirror, such as ftp://ftp.free.fr/pub/Distributions_Linux/plf/mandriva/free/src/hdlist.cz), and any empty configuration file: first header will automatically get undefined, and an exception get thrown. Curiously: - using individual rpms instead of hdlist doesn't trigger the problem - localising $_ before parsing the config file workaround the problem
Subject: testcase.pl
Download testcase.pl
text/x-perl 331b
#!/usr/bin/perl use URPM; use AppConfig; my $hdlist = shift || die "usage: $0 hdlist.cz file.conf"; my $file = shift || die "usage: $0 hdlist.cz file.conf"; my $urpm = URPM->new(); $urpm->parse_hdlist($hdlist); my $config = AppConfig->new(); $urpm->traverse(sub { $config->file($file); print $_[0]->name() . "\n"; });


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.