summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-08-27 19:40:35 +0000
committerjbj <devnull@localhost>2000-08-27 19:40:35 +0000
commit9866d30b0d4a494f33dd3f30074eff6c0dea90b5 (patch)
treec8ce0323e84d155626b9a97e0ad2f0fcc88f672a /lib
parentf8b364d7a88e346412bd2f458b25d1728abaaf5c (diff)
downloadlibrpm-tizen-9866d30b0d4a494f33dd3f30074eff6c0dea90b5.tar.gz
librpm-tizen-9866d30b0d4a494f33dd3f30074eff6c0dea90b5.tar.bz2
librpm-tizen-9866d30b0d4a494f33dd3f30074eff6c0dea90b5.zip
Doxygen annotations.
CVS patchset: 4133 CVS date: 2000/08/27 19:40:35
Diffstat (limited to 'lib')
-rw-r--r--lib/hash.c3
-rw-r--r--lib/transaction.c20
2 files changed, 18 insertions, 5 deletions
diff --git a/lib/hash.c b/lib/hash.c
index 73f37a24b..a8c67acac 100644
--- a/lib/hash.c
+++ b/lib/hash.c
@@ -1,4 +1,5 @@
-/** \file lib/hash.c
+/**
+ * \file lib/hash.c
* Hash table implemenation
*/
diff --git a/lib/transaction.c b/lib/transaction.c
index c7743c676..9f3a5f170 100644
--- a/lib/transaction.c
+++ b/lib/transaction.c
@@ -1,3 +1,7 @@
+/** \ingroup rpmtrans
+ * \file lib/transaction.c
+ */
+
#include "system.h"
#include <rpmlib.h>
@@ -194,20 +198,25 @@ static void psAppendFile(rpmProblemSet probs, rpmProblemType type,
static int archOkay(Header h)
{
- int_8 * pkgArchNum;
void * pkgArch;
- int type, count, archNum;
+ int type, count;
/* make sure we're trying to install this on the proper architecture */
headerGetEntry(h, RPMTAG_ARCH, &type, (void **) &pkgArch, &count);
+#ifndef DYING
if (type == RPM_INT8_TYPE) {
+ int_8 * pkgArchNum;
+ int archNum;
+
/* old arch handling */
rpmGetArchInfo(NULL, &archNum);
pkgArchNum = pkgArch;
if (archNum != *pkgArchNum) {
return 0;
}
- } else {
+ } else
+#endif
+ {
/* new arch handling */
if (!rpmMachineScore(RPM_MACHTABLE_INSTARCH, pkgArch)) {
return 0;
@@ -224,11 +233,14 @@ static int osOkay(Header h)
/* make sure we're trying to install this on the proper os */
headerGetEntry(h, RPMTAG_OS, &type, (void **) &pkgOs, &count);
+#ifndef DYING
if (type == RPM_INT8_TYPE) {
/* v1 packages and v2 packages both used improper OS numbers, so just
deal with it hope things work */
return 1;
- } else {
+ } else
+#endif
+ {
/* new os handling */
if (!rpmMachineScore(RPM_MACHTABLE_INSTOS, pkgOs)) {
return 0;