SOLV file.
esac
done
fi
- ) | susetags2solv -a -c "${olddir}/content"
+ ) | susetags2solv -c "${olddir}/content"
cd "$olddir"
fi
*/
void
-repo_add_susetags(Repo *repo, FILE *fp, Id vendor, const char *attrname)
+repo_add_susetags(Repo *repo, FILE *fp, Id vendor)
{
Pool *pool = repo->pool;
char *line, *linep;
struct parsedata pd;
Repodata *data = 0;
- if (attrname)
- {
- data = repo_add_repodata(repo);
- init_attr_ids(pool);
- }
+ data = repo_add_repodata(repo);
+ init_attr_ids(pool);
memset(&pd, 0, sizeof(pd));
line = malloc(1024);
last_found_pack = 0;
indesc++;
continue;
- }
- if (!attrname)
- continue;
- switch (tag)
- {
+
+ /* From here it's the attribute tags. */
case CTAG('=', 'G', 'r', 'p'):
repodata_set_poolstr(data, last_found_pack, id_group, line + 6);
continue;
* if <attrname> given, write attributes as '<attrname>.attr'
*/
-extern void repo_add_susetags(Repo *repo, FILE *fp, Id vendor, const char *attrname);
+extern void repo_add_susetags(Repo *repo, FILE *fp, Id vendor);
switch (*s++)
{
case 'h': usage(NULL); break;
- case 'a':
- if (attrname == NULL)
- attrname = "test.attr";
- break;
case 'n':
if (argc)
{
attrname = newname;
}
}
- repo_add_susetags(repo, stdin, vendor, attrname);
+ repo_add_susetags(repo, stdin, vendor);
tool_write(repo, 0, attrname);
pool_free(pool);
exit(0);