Skip to content

Commit

Permalink
Document pool_setdisttype return value
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Oct 9, 2014
1 parent 86a8d25 commit a4a4a37
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
10 changes: 5 additions & 5 deletions doc/libsolv-pool.3
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
.\" Title: Libsolv-Pool
.\" Author: [see the "Author" section]
.\" Generator: DocBook XSL Stylesheets v1.78.0 <http://docbook.sf.net/>
.\" Date: 09/20/2013
.\" Date: 10/09/2014
.\" Manual: LIBSOLV
.\" Source: libsolv
.\" Language: English
.\"
.TH "LIBSOLV\-POOL" "3" "09/20/2013" "libsolv" "LIBSOLV"
.TH "LIBSOLV\-POOL" "3" "10/09/2014" "libsolv" "LIBSOLV"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
Expand Down Expand Up @@ -363,13 +363,13 @@ Make the addfileprovides method only add files from the standard locations (i\&.
.RS 4
.\}
.nf
\fBvoid pool_setdisttype(Pool *\fR\fIpool\fR\fB, int\fR \fIdisttype\fR\fB)\fR;
\fBint pool_setdisttype(Pool *\fR\fIpool\fR\fB, int\fR \fIdisttype\fR\fB)\fR;
.fi
.if n \{\
.RE
.\}
.sp
Set the package type of your system\&. The disttype is used for example to define package comparison semantics\&. Libsolv\(cqs default disttype should match the package manager of your system, so you only need to use this function if you want to use the library to solve packaging problems for different systems\&.
Set the package type of your system\&. The disttype is used for example to define package comparison semantics\&. Libsolv\(cqs default disttype should match the package manager of your system, so you only need to use this function if you want to use the library to solve packaging problems for different systems\&. The Function returns the old disttype on success, and \-1 if the new disttype is not supported\&.
.sp
.if n \{\
.RS 4
Expand Down Expand Up @@ -1241,7 +1241,7 @@ There can be multiple equivalence classes, the set of allowed vendor changes for
You can turn off the architecture replacement checks with the Solver\(cqs SOLVER_FLAG_ALLOW_VENDORCHANGE flag\&.
.SH "BOOLEAN DEPENDENCIES"
.sp
Boolean Dependencies allow to build complex expressions from simple dependencies\&. While rpm does not support boolean expressions in dependencies and debian only allows an "OR" expression, libsolv allows one to arbitrary complex expressions\&. The following basic types are supported:
Boolean Dependencies allow to build complex expressions from simple dependencies\&. While rpm does not support boolean expressions in dependencies and debian only allows an "OR" expression, libsolv allows arbitrary complex expressions\&. The following basic types are supported:
.PP
\fBREL_OR\fR
.RS 4
Expand Down
7 changes: 4 additions & 3 deletions doc/libsolv-pool.txt
Original file line number Diff line number Diff line change
Expand Up @@ -262,13 +262,14 @@ generates.


=== Functions ===
void pool_setdisttype(Pool *pool, int disttype);
int pool_setdisttype(Pool *pool, int disttype);

Set the package type of your system. The disttype is used for example
to define package comparison semantics. Libsolv's default disttype
should match the package manager of your system, so you only need to
use this function if you want to use the library to solve packaging
problems for different systems.
problems for different systems. The Function returns the old
disttype on success, and -1 if the new disttype is not supported.

int pool_set_flag(Pool *pool, int flag, int value);

Expand Down Expand Up @@ -813,7 +814,7 @@ Boolean Dependencies
Boolean Dependencies allow to build complex expressions from simple
dependencies. While rpm does not support boolean expressions in
dependencies and debian only allows an "OR" expression, libsolv
allows to arbitrary complex expressions. The following basic types
allows arbitrary complex expressions. The following basic types
are supported:

*REL_OR*::
Expand Down

0 comments on commit a4a4a37

Please sign in to comment.