diff options
author | jbj <devnull@localhost> | 2002-04-11 16:55:19 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2002-04-11 16:55:19 +0000 |
commit | 2404e8d91895eae6913b9181094e6ef1f3c47ed0 (patch) | |
tree | 02db6f534d1c4daf10930c1733783e1a74b16aaa /build.c | |
parent | bd2f1e9543e175e9b1c07e308da38d39807ccabd (diff) | |
download | librpm-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.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; } |