diff options
-rw-r--r-- | bin/fdp-functions | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/bin/fdp-functions b/bin/fdp-functions index 613c5a1..e57f2a2 100644 --- a/bin/fdp-functions +++ b/bin/fdp-functions @@ -24,6 +24,14 @@ XSLTPROC=${XSLTPROC:-xsltproc} XMLFORMAT=${XMLFORMAT:-"${FDPBINDIR}/xmlformat"} XMLFOPTS=${XMLFOPTS:-"-f ${FDPBINDIR}/xmlformat-fdp.conf"} +rpminfo_exists() +{ + if [ ! -f "${RPMINFO}" ]; then + echo "File ${RPMINFO} missing." >&2 + return 1 + fi +} + get_all_workers() { # Return list of workers, in format "email:wholename" @@ -49,6 +57,16 @@ get_worker_attribute() "${FDPPKGDIR}/get-worker.xsl" "${RPMINFO}" } +get_title() +{ + rpminfo_exists && ${XSLTPROC} "${FDPPKGDIR}/get-title.xsl" "${RPMINFO}" +} + +get_desc() +{ + rpminfo_exists && ${XSLTPROC} "${FDPPKGDIR}/get-desc.xsl" "${RPMINFO}" +} + version() { # Return latest revision for an optional role argument |