Perl-RPM

 view release on metacpan or  search on metacpan

RPM/Constants.pm  view on Meta::CPAN


=item RPM_INT8_TYPE

All items of this type are 8-bit integers.

=item RPM_INT16_TYPE

This type represents 16-bit integers.

=item RPM_INT32_TYPE

This type represents 32-bit integers.

=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

An error occured with the B<gzip> program.

=item RPMERR_INTERNAL

This is used to signal internal errors from within the RPM library. Odds are,
if your program sees this error, you should exit as cleanly and quickly as
possible.

=item RPMERR_LDD

An error occurred with the B<ldd> program.

=item RPMERR_MKDIR

An error code was returned from the C<mkdir> system call.

=item RPMERR_MTAB

An error occured when trying to determine file system information from the
system C<mtab> file.

=item RPMERR_NEWPACKAGE

An attempt was made to create a new package with a specification of an RPM
version older (less) than 3.

=item RPMERR_NOCREATEDB

An attempt was made to create the database when one already exists.

=item RPMERR_NOGROUP

A group specified for file group-ownership was not found in the list of groups
on the system. The group C<root> will be used instead.

=item RPMERR_NORELOCATE

An attempt was made to relocate a package that is not relocatable.

=item RPMERR_NOSPACE

An attempt to write a package file failed for lack of available disk space.

=item RPMERR_NOSPEC

Am unpack operation on a source RPM failed to produce a spec file.

=item RPMERR_NOTSRPM

An operation was requested that can only be performed on a source RPM, but the
specified package was a binary (or C<noarch>) RPM.

=item RPMERR_NOUSER

A specified user (for file ownership) does not exist, and C<root> will be used
in its place. See B<RPMERR_NOGROUP>.

=item RPMERR_OLDDB

An old-format database is present.

=item RPMERR_OLDDBCORRUPT

An old-format database being read (for conversion) was found to be corrupt.

=item RPMERR_OLDDBMISSING

A request to convert an old-format database found that there was no such
database present.

=item RPMERR_OLDPACKAGE

An old-format package was detected.

=item RPMERR_PKGINSTALLED

A package requested for install is already installed on the system.

=item RPMERR_READ

An error occurred while reading data.

=item RPMERR_RENAME

An error occured while renaming a file.

=item RPMERR_RMDIR

An attempted removal of a directory failed.

=item RPMERR_RPMRC

A parsing or format error in an RC (options) file occurred.

=item RPMERR_SCRIPT

An error occurred while executing a script.



( run in 1.269 second using v1.01-cache-2.11-cpan-5511b514fd6 )