--rdeps: build specified packages and packages depend on them
--deps: build all specified packages and packages they depend on
Change-Id: If5470238eb57bea48e1e316e35c0ab492493ccd9
ch_opts="--message= --since= --packaging-dir="
cr_opts="--root"
lbex_opts="--no-configure --exclude-from-file= --exclude= --binary-list= --threads=\
- --incremental --overwrite --clean-once --debug $lb_opts"
+ --incremental --overwrite --clean-once --debug --deps --rdeps $lb_opts"
cl_opts="--upstream-branch= --all --depth="
pull_opts="--upstream-branch= --force --depth="
raise GbsError('specified binary list file %s not exists' % \
args.binary_list)
cmd_opts += ['--binary=%s' % args.binary_list]
+ if args.deps:
+ cmd_opts += ['--deps']
+ if args.rdeps:
+ cmd_opts += ['--rdeps']
cmd_opts += ['--threads=%s' % args.threads]
cmd_opts += ['--packaging-dir=%s' % get_packaging_dir(args)]
'format is one package in one line, and only binary '
'RPM package name is accepted. Packages listed in '
'this file will be skipped to be built.')
+ group.add_argument('--deps', action='store_true',
+ help='build specified packages and all packages '
+ 'they depend on')
+ group.add_argument('--rdeps', action='store_true',
+ help='build specified packages and all packages '
+ 'depend on them')
parser.set_defaults(alias="lb")
return parser