diff options
author | root <devnull@localhost> | 1996-09-02 01:58:13 +0000 |
---|---|---|
committer | root <devnull@localhost> | 1996-09-02 01:58:13 +0000 |
commit | c3b58424648442e4e4ca29631f00c50811f464a2 (patch) | |
tree | 5682bc2397029b6485872f9632e18061bf910bdf /rpm.c | |
parent | d4f868b78020287b3b1dfb3fe82808d97c6ea63b (diff) | |
download | rpm-c3b58424648442e4e4ca29631f00c50811f464a2.tar.gz rpm-c3b58424648442e4e4ca29631f00c50811f464a2.tar.bz2 rpm-c3b58424648442e4e4ca29631f00c50811f464a2.zip |
--test for building
CVS patchset: 1015
CVS date: 1996/09/02 01:58:13
Diffstat (limited to 'rpm.c')
-rwxr-xr-x | rpm.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -793,9 +793,10 @@ int main(int argc, char ** argv) { argerror(_("--nofiles may only be specified during package " "verification")); - if (bigMode != MODE_INSTALL && bigMode != MODE_UNINSTALL && test) - argerror(_("--test may only be specified during package installation " - "and uninstallation")); + if (bigMode != MODE_INSTALL && bigMode != MODE_UNINSTALL && + bigMode != MODE_BUILD && test) + argerror(_("--test may only be specified during package installation, " + "uninstallation, and building")); if (bigMode != MODE_INSTALL && bigMode != MODE_UNINSTALL && bigMode != MODE_QUERY && bigMode != MODE_VERIFY && rootdir[1]) @@ -933,6 +934,9 @@ int main(int argc, char ** argv) { if (clean) buildAmount |= RPMBUILD_SWEEP; + if (test) + buildAmount |= RPMBUILD_TEST; + if (optind == argc) argerror(_("no spec files given for build")); |