(Steve Dougherty)
2013-07-26: Add fn-updaterepolist to reinsert repo list. Add fn-updaterepolist to reinsert repo list. Fixes bug 2.
diff --git a/infocalypse/__init__.py b/infocalypse/__init__.py --- a/infocalypse/__init__.py +++ b/infocalypse/__init__.py @@ -391,6 +391,9 @@ cmdtable = { + AGGRESSIVE_OPT, "[options]"), + "fn-updaterepolist": (infocalypse_update_repo_list, + WOT_CREATE_OPTS), + "fn-pull-request": (infocalypse_pull_request, [('', 'wot', '', 'WoT nick@key/repo to send request ' 'to')] @@ -538,6 +541,7 @@ commands.norepo += ' fn-setupfms' commands.norepo += ' fn-genkey' commands.norepo += ' fn-archive' commands.norepo += ' fn-setupwot' +commands.norepo += ' fn-updaterepolist' ## Wrap core commands for use with freenet keys. diff --git a/infocalypse/commands.py b/infocalypse/commands.py --- a/infocalypse/commands.py +++ b/infocalypse/commands.py @@ -36,6 +36,15 @@ def set_target_version(ui_, repo, opts, #print params['TO_VERSIONS'] +def infocalypse_update_repo_list(ui, **opts): + if not opts['wot']: + raise util.Abort("Update which repository list? Use --wot") + + import wot + local_id = wot.resolve_local_identity(ui, opts['wot']) + wot.update_repo_listing(ui, local_id['Identity']) + + def infocalypse_create(ui_, repo, **opts): """ Create a new Infocalypse repository in Freenet. """ params, stored_cfg = get_config_info(ui_, opts)