diff options
author | Michael Schroeder <mls@suse.de> | 2011-05-25 15:28:34 +0200 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2011-05-25 15:28:34 +0200 |
commit | 66e7a252604ae81a027a2c7b8c437b7228eddcc4 (patch) | |
tree | a44aafbdb3a2cba25f6581f409b779a7354b93cf /ext/repo_deb.c | |
parent | 55f5371d10bc44570b2d50bb737aba8a3ae1e93f (diff) | |
download | libsolv-66e7a252604ae81a027a2c7b8c437b7228eddcc4.tar.gz libsolv-66e7a252604ae81a027a2c7b8c437b7228eddcc4.tar.bz2 libsolv-66e7a252604ae81a027a2c7b8c437b7228eddcc4.zip |
- add solver_private.h, make repo_ functions return an int, make solver_solv return the problem count
Diffstat (limited to 'ext/repo_deb.c')
-rw-r--r-- | ext/repo_deb.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/repo_deb.c b/ext/repo_deb.c index d299f9a..6e89d19 100644 --- a/ext/repo_deb.c +++ b/ext/repo_deb.c @@ -347,7 +347,7 @@ control2solvable(Solvable *s, Repodata *data, char *control) } } -void +int repo_add_debpackages(Repo *repo, FILE *fp, int flags) { Pool *pool = repo->pool; @@ -409,9 +409,10 @@ repo_add_debpackages(Repo *repo, FILE *fp, int flags) sat_free(buf); if (!(flags & REPO_NO_INTERNALIZE)) repodata_internalize(data); + return 0; } -void +int repo_add_debdb(Repo *repo, const char *rootdir, int flags) { FILE *fp; @@ -425,9 +426,10 @@ repo_add_debdb(Repo *repo, const char *rootdir, int flags) } repo_add_debpackages(repo, fp, flags); fclose(fp); + return 0; } -void +int repo_add_debs(Repo *repo, const char **debs, int ndebs, int flags) { Pool *pool = repo->pool; @@ -597,6 +599,7 @@ repo_add_debs(Repo *repo, const char **debs, int ndebs, int flags) } if (!(flags & REPO_NO_INTERNALIZE)) repodata_internalize(data); + return 0; } Id |