'verbosity': options.df_verbosity,
'accept-url': options.df_accept_url,
'deny-url': options.df_deny_url,
- 'exhaust-url': options.df_exhaust_url,
}
try:
try:
grp.add_option( '--df-verbose', default=1, action='count', dest='df_verbosity', help='increase distfile tools verbosity' )
grp.add_option( '--df-accept-url', default=[], action='append', metavar='SPEC', help='accept URLs matching regex pattern' )
grp.add_option( '--df-deny-url', default=[], action='append', metavar='SPEC', help='deny URLs matching regex pattern' )
- grp.add_option( '--df-exhaust-url', default=False, action='store_true', help='try all active distfiles' )
cli.add_option_group( grp )
## add install options
parser.values.disable = data['disable-fetch']
parser.values.accept_url = data['accept-url']
parser.values.deny_url = data['deny-url']
- parser.values.exhaust_url = data['exhaust-url']
def _run(self, error):
if self.options.disable:
define $(1).FETCH
$$(DF.FETCH.exe) --config $(BUILD/)distfile.cfg $$(if $$($(1).FETCH.md5),--md5 $$($(1).FETCH.md5)) --output $$@ $$($(1).FETCH.url)
endef
+ define $(1).FETCH.test
+ $$(DF.FETCH.exe) --config $(BUILD/)distfile.cfg $$(if $$($(1).FETCH.md5),--md5 $$($(1).FETCH.md5)) --exhaust-url $$($(1).FETCH.url)
+ endef
##
## target: verify
$$($(1).FETCH.target): | $$(dir $$($(1).FETCH.target))
@$$($(1).FETCH)
+$($(1).name).fetch.test:
+ @$$($(1).FETCH.test)
+
##
## target: verify
##
## participate with global convenience targets
##
contrib.fetch: $($(1).name).fetch
+contrib.fetch.test: $($(1).name).fetch.test
contrib.verify: $($(1).name).verify
contrib.verify.touch: $($(1).name).verify.touch
contrib.verify.untouch: $($(1).name).verify.untouch