diff options
author | Michael Schroeder <mls@suse.de> | 2012-04-16 18:40:03 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2012-04-16 18:40:03 +0200 |
commit | 58938e5ee8e44279c1521b113f75c704008bd276 (patch) | |
tree | 8d240dd2e07334f427ee1939425ed2f97d24bcf0 /tools | |
parent | 64af5496c8e755df389d568c8e5c1045dcda9483 (diff) | |
download | libsolv-58938e5ee8e44279c1521b113f75c704008bd276.tar.gz libsolv-58938e5ee8e44279c1521b113f75c704008bd276.tar.bz2 libsolv-58938e5ee8e44279c1521b113f75c704008bd276.zip |
- fix wrong logic
Diffstat (limited to 'tools')
-rw-r--r-- | tools/archpkgs2solv.c | 2 | ||||
-rw-r--r-- | tools/rpms2solv.c | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/tools/archpkgs2solv.c b/tools/archpkgs2solv.c index 1f89929..4ce95a4 100644 --- a/tools/archpkgs2solv.c +++ b/tools/archpkgs2solv.c @@ -118,7 +118,7 @@ main(int argc, char **argv) repo_add_repodata(repo, 0); res = 0; for (i = 0; i < npkgs; i++) - if (repo_add_arch_pkg(repo, pkgs[i], REPO_REUSE_REPODATA|REPO_NO_INTERNALIZE|flags) != 0) + if (repo_add_arch_pkg(repo, pkgs[i], REPO_REUSE_REPODATA|REPO_NO_INTERNALIZE|flags) == 0) { fprintf(stderr, "archpkgs2solv: %s\n", pool_errstr(pool)); res = 1; diff --git a/tools/rpms2solv.c b/tools/rpms2solv.c index 29e851a..54ea4e9 100644 --- a/tools/rpms2solv.c +++ b/tools/rpms2solv.c @@ -55,7 +55,6 @@ main(int argc, char **argv) int c, i, res, nrpms = 0; Pool *pool = pool_create(); Repo *repo; - Repodata *data; FILE *fp; char buf[4096], *p; const char *basefile = 0; @@ -116,7 +115,7 @@ main(int argc, char **argv) res = 0; for (i = 0; i < nrpms; i++) { - if (repo_add_rpm(repo, rpms[i], REPO_REUSE_REPODATA|REPO_NO_INTERNALIZE)) + if (repo_add_rpm(repo, rpms[i], REPO_REUSE_REPODATA|REPO_NO_INTERNALIZE) == 0) { fprintf(stderr, "rpms2solv: %s\n", pool_errstr(pool)); res = 1; |