summaryrefslogtreecommitdiff
path: root/rpm.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-04-30 15:55:45 +0000
committerjbj <devnull@localhost>1999-04-30 15:55:45 +0000
commitab46aedd86f681a46670e00383e529136c7eabbf (patch)
treeecd325bc86bcfed723c7067461c2fc31c534de7b /rpm.c
parentd28afe6e1e4652c9e55af2f67b088517b9677f66 (diff)
downloadrpm-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-xrpm.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/rpm.c b/rpm.c
index 035729037..4b719d5b6 100755
--- a/rpm.c
+++ b/rpm.c
@@ -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;
}