- add key filtering to repo_write
[platform/upstream/libsolv.git] / tools / rpmmd2solv.c
1 /*
2  * Copyright (c) 2007, Novell Inc.
3  *
4  * This program is licensed under the BSD license, read LICENSE.BSD
5  * for further information
6  */
7
8 #include <sys/types.h>
9 #include <limits.h>
10 #include <fcntl.h>
11 #include <stdio.h>
12 #include <stdlib.h>
13 #include <string.h>
14
15 #include "pool.h"
16 #include "repo.h"
17 #include "repo_rpmmd.h"
18 #include "repo_write.h"
19
20 int
21 main(int argc, char **argv)
22 {
23   Pool *pool = pool_create();
24   Repo *repo = repo_create(pool, "<stdin>");
25   repo_add_rpmmd(repo, stdin);
26   repo_write(repo, stdout, 0, 0);
27   pool_free(pool);
28   exit(0);
29 }