default=False, help='ignore masked packages (not allowed with commit mode)')
parser.add_option('--without-mask', dest='without_mask', action='store_true',
- default=False, help='behave as if no package.mask entries exist')
+ default=False, help='behave as if no package.mask entries exist (not allowed with commit mode)')
parser.add_option('--mode', type='choice', dest='mode', choices=modes.keys(),
help='specify which mode repoman will run in (default=full)')
if not opts.mode:
opts.mode = 'full' #default to full
- if opts.mode == 'commit' and opts.ignore_masked:
- parser.error('Commit mode and --ignore_masked are not compatable')
+ if opts.mode == 'commit' and not (opts.force or opts.pretend):
+ if opts.ignore_masked:
+ parser.error('Commit mode and --ignore-masked are not compatable')
+ if opts.without_mask:
+ parser.error('Commit mode and --without-mask are not compatable')
# Use the verbosity and quiet options to fiddle with the loglevel appropriately
for val in range(opts.verbosity):
Ignore masked packages (not allowed with commit mode)
.TP
\fB\-\-without\-mask\fR
-Behave as if no package.mask entries exist
+Behave as if no package.mask entries exist (not allowed with commit mode)
.TP
\fB-m\fR, \fB--commitmsg\fR
Adds a commit message via the command line