summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2002-04-11 16:55:19 +0000
committerjbj <devnull@localhost>2002-04-11 16:55:19 +0000
commit2404e8d91895eae6913b9181094e6ef1f3c47ed0 (patch)
tree02db6f534d1c4daf10930c1733783e1a74b16aaa /build.c
parentbd2f1e9543e175e9b1c07e308da38d39807ccabd (diff)
downloadlibrpm-tizen-2404e8d91895eae6913b9181094e6ef1f3c47ed0.tar.gz
librpm-tizen-2404e8d91895eae6913b9181094e6ef1f3c47ed0.tar.bz2
librpm-tizen-2404e8d91895eae6913b9181094e6ef1f3c47ed0.zip
- rescusitate --rebuild.
CVS patchset: 5389 CVS date: 2002/04/11 16:55:19
Diffstat (limited to 'build.c')
-rw-r--r--build.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/build.c b/build.c
index a2a8436da..1a577f95a 100644
--- a/build.c
+++ b/build.c
@@ -7,6 +7,9 @@
#include <rpmcli.h>
#include <rpmbuild.h>
+#include "rpmte.h"
+#include "rpmts.h"
+
#include "build.h"
#include "debug.h"
@@ -28,6 +31,8 @@ static int checkSpec(rpmTransactionSet ts, Header h)
&& !headerIsEntry(h, RPMTAG_CONFLICTNAME))
return 0;
+ rc = rpmtransAddPackage(ts, h, NULL, 0, NULL);
+
rc = rpmdepCheck(ts, &conflicts, &numConflicts);
/*@-branchstate@*/
if (rc == 0 && conflicts) {
@@ -38,6 +43,9 @@ static int checkSpec(rpmTransactionSet ts, Header h)
}
/*@=branchstate@*/
+ /* XXX nuke the added package. */
+ rpmtransClean(ts);
+
return rc;
}