RPM Community Forums

Mailing List Message of <rpm-users>

Re: Perl: Query with RPM-Perl in 5.x for a package?

From: Robert Scheck <robert@rpm5.org>
Date: Wed 13 Aug 2008 - 22:50:41 CEST
Message-ID: <20080813205041.GA2246@hurricane.linuxnetz.de>
On Tue, 12 Aug 2008, Michael Jennings wrote:
> # perl -MRPM::PackageIterator -e '$iter = RPM::PackageIterator->new("NAME", "rpm"); while ($pkg = $iter->next()) {print $pkg->as_nvre(), "\n";}'
> rpm-5.1.4-4.caos


robert@tux:~ > perl -MRPM::PackageIterator -e '$iter = RPM::PackageIterator->new("NAME", "rpm"); while ($pkg = $iter->next()) {print $pkg->as_nvre(), "\n";}'
robert@tux:~ >

"Speicherzugriffsfehler" is German and means "Segmentation fault". Am I
too dumb now or is this really a bug? I'm using RPM 5.2.x (HEAD) with a
checkout of 2008-06-30.

Received on Wed Aug 13 22:50:45 2008
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.