Perl-RPM

 view release on metacpan or  search on metacpan

RPM/Constants.pm  view on Meta::CPAN


=item RPM_BIN_TYPE

Data of this type represents a chunk of binary data without any further
decoding or translation. It is stored as a string in Perl terms, and the
C<length> keyword should return the size of the chunk.

=item RPM_STRING_TYPE

=item RPM_STRING_ARRAY_TYPE

=item RPM_I18NSTRING_TYPE

These data types represent strings of text. Each are stored and treated the
same internally by Perl.

=back

=head2 Error Codes

The following symbols may be imported via the tag B<:rpmerr>. They represent
the set of pre-defined error conditions that the B<rpm> system anticipates
as possibly occuring:

=over

=item RPMERR_BADARG

This is the most common error type used within the Perl RPM bindings. It is
used here to indicate bad or missing data in method calls.

=item RPMERR_BADDEV

Signaled when a file in the contents list is a bad or unknown device type.

=item RPMERR_BADFILENAME

This error signifies that RPM was unable to generate a filename, or that a
filename that RPM tried to use led to an error.

=item RPMERR_BADMAGIC

Signaled whenever an attempt to read the lead-in of the header (the "file magic"
information) fails. May be due either to bad data in that part, or an I/O
failure in reading the data itself.

=item RPMERR_BADRELOCATE

An error with the relocation specifications in the spec file.

=item RPMERR_BADSIGTYPE

Signals that an older, obsoleted style of signature was detected.

=item RPMERR_BADSPEC

General errors in the parsing or processing of the spec file.

=item RPMERR_CHOWN

An error occured in using the B<chown> system call.

=item RPMERR_CPIO

Errors that may occur when using B<cpio> to either package or unpack the source.

=item RPMERR_CREATE

This is signaled when RPM cannot create a directory or file.

=item RPMERR_DBCORRUPT

Signaled for consistency errors found in the database.

=item RPMERR_DBGETINDEX

This error represents a failure to read a requested header record from the
database.

=item RPMERR_DBOPEN

An error when opening some component of the database.

=item RPMERR_DBPUTINDEX

This error signals a failure to either store or remove a specified entry into
(or from) the database.

=item RPMERR_EXEC

An error occured when executing a sub-command (such as B<pgp>).

=item RPMERR_FILECONFLICT

A file conflict (not otherwise caught or handled by B<rpm> itself) was detected.

=item RPMERR_FLOCK

A failure to obtain a lock on the database. When the RPM library opens the
database it places an exclusive lock on it. As such, there cannot be two
processes (or two B<RPM::Database> instances) accessing the database at one
time.

=item RPMERR_FORK

An error occured when RPM tried to fork a child process.

=item RPMERR_GDBMOPEN

An error occured when trying to open a GDBM (GNU DBM) database.

=item RPMERR_GDBMREAD

An error occured when trying to read from a GDBM database.

=item RPMERR_GDBMWRITE

An error occured when trying to write to a GDBM database.

=item RPMERR_GZIP



( run in 2.094 seconds using v1.01-cache-2.11-cpan-71847e10f99 )