diff options
author | jbj <devnull@localhost> | 1999-04-30 15:55:45 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 1999-04-30 15:55:45 +0000 |
commit | ab46aedd86f681a46670e00383e529136c7eabbf (patch) | |
tree | ecd325bc86bcfed723c7067461c2fc31c534de7b /rpm.c | |
parent | d28afe6e1e4652c9e55af2f67b088517b9677f66 (diff) | |
download | rpm-ab46aedd86f681a46670e00383e529136c7eabbf.tar.gz rpm-ab46aedd86f681a46670e00383e529136c7eabbf.tar.bz2 rpm-ab46aedd86f681a46670e00383e529136c7eabbf.zip |
resurrect toplevel tar target.
spec file removal separate from source removal (Shing-Gene Yung).
CVS patchset: 3042
CVS date: 1999/04/30 15:55:45
Diffstat (limited to 'rpm.c')
-rwxr-xr-x | rpm.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -898,6 +898,9 @@ int main(int argc, char ** argv) { if ((buildArgs.buildAmount & RPMBUILD_RMSOURCE) && bigMode == MODE_UNKNOWN) bigMode = MODE_BUILD; + + if ((buildArgs.buildAmount & RPMBUILD_RMSPEC) && bigMode == MODE_UNKNOWN) + bigMode = MODE_BUILD; if (initdb) { if (bigMode != MODE_UNKNOWN) @@ -946,9 +949,10 @@ int main(int argc, char ** argv) { argerror(_("unexpected query source")); if (!(bigMode == MODE_INSTALL || - (bigMode == MODE_BUILD && (buildArgs.buildAmount & RPMBUILD_RMSOURCE))) + (bigMode==MODE_BUILD && (buildArgs.buildAmount & RPMBUILD_RMSOURCE))|| + (bigMode==MODE_BUILD && (buildArgs.buildAmount & RPMBUILD_RMSPEC))) && force) - argerror(_("only installation, upgrading and rmsource may be forced")); + argerror(_("only installation, upgrading, rmsource and rmspec may be forced")); if (bigMode != MODE_INSTALL && badReloc) argerror(_("files may only be relocated during package installation")); @@ -1237,6 +1241,7 @@ int main(int argc, char ** argv) { if (bigMode == MODE_REBUILD) { buildArgs.buildAmount |= RPMBUILD_PACKAGEBINARY; buildArgs.buildAmount |= RPMBUILD_RMSOURCE; + buildArgs.buildAmount |= RPMBUILD_RMSPEC; buildArgs.buildAmount |= RPMBUILD_CLEAN; buildArgs.buildAmount |= RPMBUILD_RMBUILD; } |