From: Duncan Mac-Vicar P Date: Tue, 13 May 2008 10:24:57 +0000 (+0000) Subject: a boolean is not a num attribute set to 1, but just a existing void X-Git-Tag: BASE-SuSE-Code-12_1-Branch~657 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1aea35d1bc264bc3901ee9d7d29f7ec1c5ba1746;p=platform%2Fupstream%2Flibsolv.git a boolean is not a num attribute set to 1, but just a existing void attribute. (bnc#388818) --- diff --git a/package/libsatsolver.changes b/package/libsatsolver.changes index 79a5fe8..02dcb03 100644 --- a/package/libsatsolver.changes +++ b/package/libsatsolver.changes @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Tue May 13 12:20:58 CEST 2008 - dmacvicar@suse.de + +- a boolean is not a num attribute set to 1, but just a existing void + attribute. (bnc#388818) + +------------------------------------------------------------------- Mon May 12 10:16:20 CEST 2008 - coolo@suse.de - provide libsatsolver to fix requires of debuginfo diff --git a/src/solvable.c b/src/solvable.c index 630ef20..5f64ce3 100644 --- a/src/solvable.c +++ b/src/solvable.c @@ -226,12 +226,6 @@ solvable_lookup_num(Solvable *s, Id keyname, unsigned int notfound) } int -solvable_lookup_bool(Solvable *s, Id keyname) -{ - return solvable_lookup_num(s, keyname, 0) ? 1 : 0; -} - -int solvable_lookup_void(Solvable *s, Id keyname) { Repo *repo = s->repo; @@ -260,6 +254,12 @@ solvable_lookup_void(Solvable *s, Id keyname) return 0; } +int +solvable_lookup_bool(Solvable *s, Id keyname) +{ + return solvable_lookup_void(s, keyname); +} + const unsigned char * solvable_lookup_bin_checksum(Solvable *s, Id keyname, Id *typep) {