summaryrefslogtreecommitdiff
path: root/packages/brpm
diff options
context:
space:
mode:
authorJoshua Harlow <harlowja@yahoo-inc.com>2012-06-26 15:20:07 -0700
committerJoshua Harlow <harlowja@yahoo-inc.com>2012-06-26 15:20:07 -0700
commitc66ad5d6dbc0b7133b57092a52da09bb71157361 (patch)
tree71821e324a154a46f0bf1e4c2db3c981c4752d06 /packages/brpm
parente04d4588b8972c329298d5d38c9712a5f4408e82 (diff)
downloadvyos-cloud-init-c66ad5d6dbc0b7133b57092a52da09bb71157361.tar.gz
vyos-cloud-init-c66ad5d6dbc0b7133b57092a52da09bb71157361.zip
1. Add 'verbose' options to both.
2. Fixup the debian building after util changes
Diffstat (limited to 'packages/brpm')
-rwxr-xr-xpackages/brpm10
1 files changed, 9 insertions, 1 deletions
diff --git a/packages/brpm b/packages/brpm
index 6870e172..b7246d8d 100755
--- a/packages/brpm
+++ b/packages/brpm
@@ -191,7 +191,15 @@ def main():
help="select boot type (default: %(default)s)",
metavar="TYPE", default='initd',
choices=['upstart', 'initd', 'systemd'])
+ parser.add_argument("-v", "--verbose", dest="verbose",
+ help=("run verbosely"
+ " (default: %(default)s)"),
+ default=False,
+ action='store_true')
args = parser.parse_args()
+ capture = True
+ if args.verbose:
+ capture = False
# Clean out the root dir and make sure the dirs we want are in place
root_dir = os.path.expanduser("~/rpmbuild")
@@ -216,7 +224,7 @@ def main():
# Now build it!
cmd = ['rpmbuild', '-ba', spec_fn]
- util.subp(cmd, capture=False)
+ util.subp(cmd, capture=capture)
# Copy the items built to our local dir
globs = []