summaryrefslogtreecommitdiff
path: root/rpm.c
diff options
context:
space:
mode:
authorroot <devnull@localhost>1996-09-02 01:58:13 +0000
committerroot <devnull@localhost>1996-09-02 01:58:13 +0000
commitc3b58424648442e4e4ca29631f00c50811f464a2 (patch)
tree5682bc2397029b6485872f9632e18061bf910bdf /rpm.c
parentd4f868b78020287b3b1dfb3fe82808d97c6ea63b (diff)
downloadrpm-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-xrpm.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/rpm.c b/rpm.c
index 004456ed5..8ad95957d 100755
--- a/rpm.c
+++ b/rpm.c
@@ -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"));