Bug 82175

Summary: RPM2->open_package does not work
Product: [Retired] Red Hat Linux Reporter: Jos Vos <jos>
Component: perl-RPM2Assignee: Chip Turner <cturner>
Status: CLOSED RAWHIDE QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 8.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-01-18 22:44:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jos Vos 2003-01-18 22:34:47 UTC
Description of problem:
RPM2->open_package does not work correctly (see below).

Version-Release number of selected component (if applicable):
0.45-1

Sample program:

  #!/usr/bin/perl
  use RPM2;
  my $pkg = RPM2->open_package($ARGV[0]);
  print "Name = ", $pkg->name, "\n";

This does for valid parameters result in:

error reading package at
/usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/RPM2.pm line 63.

Manual upgrading to version 0.48 solves the problem.

Comment 1 Chip Turner 2003-01-18 22:44:42 UTC
there's a bug in 0.45 regarding header signature verification that has been
fixed in 0.48 (as you found).  an errata is unlikely at this point, however;
0.48-3 in Rawhide should also work.