printf("%s\n", di.kv.str);
break;
case REPOKEY_TYPE_NUM:
- printf("%d\n", di.kv.num);
+ case REPOKEY_TYPE_CONSTANT:
+ printf("%llu\n", SOLV_KV_NUM64(&di.kv));
break;
case REPOKEY_TYPE_MD5:
case REPOKEY_TYPE_SHA1:
case REPOKEY_TYPE_SHA256:
- printf("%s:%s\n", sat_chksum_type2str(di.key->type), repodata_chk2str(di.data, di.key->type, (unsigned char *)di.kv.str));
+ printf("%s:%s\n", solv_chksum_type2str(di.key->type), repodata_chk2str(di.data, di.key->type, (unsigned char *)di.kv.str));
break;
default:
break;
break;
}
}
- repo_add_repomdxml(repo, stdin, flags);
+ if (repo_add_repomdxml(repo, stdin, flags))
+ {
+ fprintf(stderr, "repomdxml2solv: %s\n", pool_errstr(pool));
+ exit(1);
+ }
if (query)
doquery(pool, repo, query);
else