#!/bin/bash

# Script to invoke rpm for the arguments passed in.  This script is intended for use
# by Code Update and will invoke a system rpm.
#
# Usage: rpmUPD [-aKfgpqV] [-aKfgpqVcdilPs] [-aKfgpqVcdilPsaKfgpqV] [-aKfgpqVcdilPsaKfgpqV]
#                   [-aKfgpqVcdilPsaKfgpqVK] [-aKfgpqVcdilPsaKfgpqVK] [-aKfgpqVcdilPsaKfgpqVKi]
#                   [-aKfgpqVcdilPsaKfgpqVKiv] [-aKfgpqVcdilPsaKfgpqVKiv] [-aKfgpqVcdilPsaKfgpqVKiv?]
#                   [-a|--all] [-f|--file] [-g|--group]
#        [-p|--package] [--specfile] [--whatrequires] [--whatprovides]
#        [-c|--configfiles] [-d|--docfiles] [--dump] [-l|--list] [-P|--patches]
#        [--queryformat=QUERYFORMAT] [-s|--state] [--nomd5] [--nofiles]
#        [--nodeps] [--noscript] [--addsign] [-K|--checksig] [--import]
#        [--resign] [--nodigest] [--nosignature] [--initdb] [--rebuilddb]
#        [--aid] [--allfiles] [--allmatches] [--badreloc]
#        [-e|--erase <package>+] [--excludedocs] [--excludepath=<path>]
#        [--force] [-F|--freshen <packagefile>+] [-h|--hash] [--ignorearch]
#        [--ignoreos] [--ignoresize] [-i|--install] [--justdb] [--nodeps]
#        [--nomd5] [--noorder] [--nosuggest] [--noscripts] [--notriggers]
#        [--oldpackage] [--percent] [--prefix=<dir>] [--relocate=<old>=<new>]
#        [--repackage] [--replacefiles] [--replacepkgs] [--test]
#        [-U|--upgrade <packagefile>+] [-D|--define 'MACRO EXPR']
#        [-E|--eval 'EXPR'] [--macros=<FILE:...>] [--nodigest] [--nosignature]
#        [--rcfile=<FILE:...>] [-r|--root ROOT] [-r|--scriptshell SH]
#        [--querytags] [--showrc] [--quiet] [-v|--verbose] [--version]
#        [-?|--help] [--usage] [--scripts] [--setperms] [--setugids]
#        [--conflicts] [--obsoletes] [--provides] [--requires] [--basedon]
#        [--info] [--changelog] [--triggers] [--last] [--filesbypkg]
#        [--fileclass] [--filecolor] [--buildpolicy=<policy>]
#        [--with=<option>] [--without=<option>]
#
# Exit status = 0 if no errors occur; non-zero otherwise.
#
#
# Module History:
# 00 08/03/2006  E. Leet     Initial release
# 01 09/26/2006  M. Antes    572107 - exit with return code from command

actzTrace "ESA    T: -> rpmUPD $*"

/bin/rpm $*
cmdRC=$?

actzTrace 'ESA    T: <- rpmUPD'

exit $cmdRC
