Skip Menu |

This queue is for tickets about the AppConfig CPAN distribution.

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

Owner: Nobody in particular
Requestors: grousse [...]

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 file (rpm package headers list, found on any mandriva packages mirror, such as, 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
text/x-perl 331b
#!/usr/bin/perl use URPM; use AppConfig; my $hdlist = shift || die "usage: $0 file.conf"; my $file = shift || die "usage: $0 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 infrastructure.

Please report any issues with to