Remove flag to build all RPMs 76/41076/2
authorDaniel Farrell <dfarrell@redhat.com>
Wed, 29 Jun 2016 22:23:51 +0000 (18:23 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 29 Jun 2016 23:59:30 +0000 (23:59 +0000)
We now have many 10s of RPMs defined in build_vars, so it would be
a horrible idea to build all of them. Remove that option.

Change-Id: I844fecbd176434d2f32674004d48b6590499c448
Signed-off-by: Daniel Farrell <dfarrell@redhat.com>
rpm/README.markdown
rpm/build.py

index 544d1b5e0cc38d05c47d7aaf25367f09966854dd..0ec09471e33c4cdf3d65c1f427924bf824d2d1b2 100644 (file)
@@ -139,18 +139,16 @@ build worked as expected. They can be installed in the Vagrant build box or
 another sandbox, then inspected.
 
 The `build.py` helper script can build a set of SRPMs/RPMs based on provided
-version arguments or all defined builds.
+version arguments.
 
 ```
 [vagrant@localhost ~]$ /vagrant/build.py -h
 usage: build.py [-h] [-v [major minor patch rpm [major minor patch rpm ...]]]
-                [-a]
 
 optional arguments:
   -h, --help            show this help message and exit
   -v [major minor patch rpm [major minor patch rpm ...]], --version [major minor patch rpm [major minor patch rpm ...]]
                         RPM version(s) to build
-  -a, --all             Build all RPMs
 ```
 
 The `-v`/`--version` flag accepts a version number. Any build that matches
@@ -164,8 +162,6 @@ To only build a single RPM definition, provide enough version info to make
 the match unique. For example, `build.py -v 2 4 0 1` could only match one
 definition (Helium SR4, 2.4.0-1).
 
-To build all RPMs defined in `build_vars.yaml`, use `build.py -a`.
-
 The `build.py` script uses the `cache/cache.py` script to handled downloading
 and caching the artifacts required for the requested builds. Artifacts are
 cached in the `packaging/rpm/cache/` directory.
index c5d2842b22c93da3f2e39e045e9846795db798b9..e872d1c2e0c00f54e0ef17c169286a73a9eb8d80 100755 (executable)
@@ -102,8 +102,6 @@ if __name__ == "__main__":
     parser.add_argument("-v", "--version", action="append",
                         metavar="major minor patch rpm", nargs="*",
                         help="RPM version(s) to build")
-    parser.add_argument("-a", "--all", action="store_true",
-                        help="Build all RPMs")
 
     # Print help if no arguments are given
     if len(sys.argv) == 1:
@@ -115,9 +113,7 @@ if __name__ == "__main__":
 
     # Build list of RPM builds to perform
     builds = []
-    if args.all:
-        builds = build_vars["builds"]
-    else:
+    if args.version:
         # Build a list of requested versions as dicts of version components
         versions = []
         version_keys = ["version_major", "version_minor", "version_patch",