~huwshimi/charmworld/redirect-review-queue

« back to all changes in this revision

Viewing changes to charmworld/jobs/worker.py

  • Committer: Tarmac
  • Author(s): Brad Crittenden
  • Date: 2014-05-15 20:36:22 UTC
  • mfrom: (508.1.9 ingest-local-charms)
  • Revision ID: tarmac-20140515203622-3h7hg54s44blnhlc
Allow local charm ingestion.

To bin/ingest-queued the new option --local-repo has been added.  Give the
path to a parent directory and all subdirectories that are Bazaar branches
will be ingested as charms.

Fixes bug 1319140 where the --debug option wasn't declared in the correct
place, causing bin/enqueue to die.  While the work of that script is now a
part of bin/ingest-queued it still has utility as a free-standing script and
is kept.

https://codereview.appspot.com/98280043/

R=jcsackett. Fixes: https://bugs.launchpad.net/bugs/1319140.

Approved by Juju Gui Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
105
105
        help='Keep running after the queues are processed and process more '
106
106
        'later.',
107
107
        action='store_true', dest='run_forever')
108
 
    parser.add_argument(
109
 
        '--debug',
110
 
        help='Turn on debugging',
111
 
        action='store_true', dest='debug',
112
 
        default=False)
113
108
    lp.configure_parser(parser)
114
109
    # Explicitly pass sys.argv to make monkeypatching more reliable.
115
110
    args = parser.parse_args(argv[1:])