diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-09-02 14:25:30 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-09-02 14:28:17 +0300 |
commit | bbe310aaf8c97ef3534d827f2a996c7feec7ce47 (patch) | |
tree | d5c665871d3b78f2604351c8f61f1af5de6300cf /build/spec.c | |
parent | 56bb5c89ef61c17e78fdb28e100aee52d49b98d5 (diff) | |
download | librpm-tizen-bbe310aaf8c97ef3534d827f2a996c7feec7ce47.tar.gz librpm-tizen-bbe310aaf8c97ef3534d827f2a996c7feec7ce47.tar.bz2 librpm-tizen-bbe310aaf8c97ef3534d827f2a996c7feec7ce47.zip |
Add a new public function for retrieving build dependencies from spec
- Not needed by rpmbuild itself currently, but permits retrieving the
build dependency information in a format that's better suited for
further processing than an rpm problem set.
Diffstat (limited to 'build/spec.c')
-rw-r--r-- | build/spec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build/spec.c b/build/spec.c index abe5a5d62..1fc15545a 100644 --- a/build/spec.c +++ b/build/spec.c @@ -310,6 +310,11 @@ rpmSpec rpmSpecFree(rpmSpec spec) return spec; } +rpmds rpmSpecDS(rpmSpec spec, rpmTag tag) +{ + return (spec != NULL) ? rpmdsNew(spec->buildRestrictions, tag, 0) : NULL; +} + rpmps rpmSpecCheckDeps(rpmts ts, rpmSpec spec) { rpmps probs = NULL; |