]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Document pool_setdisttype return value
authorMichael Schroeder <mls@suse.de>
Thu, 9 Oct 2014 13:27:22 +0000 (15:27 +0200)
committerMichael Schroeder <mls@suse.de>
Thu, 9 Oct 2014 13:27:22 +0000 (15:27 +0200)
doc/libsolv-pool.3
doc/libsolv-pool.txt

index 0db9f8d4b5eb545dbf3b08ab8984000a0d717aa3..1d0e84dad02c673d3a97ac6d72a37009d3afd72b 100644 (file)
@@ -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
 .\" -----------------------------------------------------------------
@@ -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
index 9740b248ee86dae25a7c2a5262f2637f30ae6494..8567cbf37db0265deedfcf4196440af6e9ae330a 100644 (file)
@@ -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*::