From: Michael Schroeder Date: Thu, 9 Oct 2014 13:27:22 +0000 (+0200) Subject: Document pool_setdisttype return value X-Git-Tag: 0.6.7~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4a4a37a43e726ba54e6fb66c48784b21caa4c51;p=thirdparty%2Flibsolv.git Document pool_setdisttype return value --- diff --git a/doc/libsolv-pool.3 b/doc/libsolv-pool.3 index 0db9f8d4..1d0e84da 100644 --- a/doc/libsolv-pool.3 +++ b/doc/libsolv-pool.3 @@ -2,12 +2,12 @@ .\" Title: Libsolv-Pool .\" Author: [see the "Author" section] .\" Generator: DocBook XSL Stylesheets v1.78.0 -.\" 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 .\" ----------------------------------------------------------------- @@ -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 @@ -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 diff --git a/doc/libsolv-pool.txt b/doc/libsolv-pool.txt index 9740b248..8567cbf3 100644 --- a/doc/libsolv-pool.txt +++ b/doc/libsolv-pool.txt @@ -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); @@ -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*::