|
302 | 302 |
|
303 | 303 | def get_source_opts(type_=None, location=None, reference=None, enabled=True,
|
304 | 304 | version=None, sha256=None):
|
305 |
| - return [cfg.StrOpt('type', choices=['local', 'git', 'url'], |
| 305 | + return [cfg.StrOpt('type', |
| 306 | + choices=['local', 'git', 'url'], |
306 | 307 | default=type_,
|
307 | 308 | help='Source location type'),
|
308 |
| - cfg.StrOpt('location', default=location, |
| 309 | + cfg.StrOpt('location', |
| 310 | + default=location, |
309 | 311 | help='The location for source install'),
|
310 |
| - cfg.StrOpt('reference', default=reference, |
| 312 | + cfg.StrOpt('reference', |
| 313 | + default=reference, |
311 | 314 | help=('Git reference to pull, commit sha, tag '
|
312 | 315 | 'or branch name')),
|
313 |
| - cfg.BoolOpt('enabled', default=enabled, |
| 316 | + cfg.BoolOpt('enabled', |
| 317 | + default=enabled, |
314 | 318 | help=('Whether the source is enabled')),
|
315 |
| - cfg.StrOpt('version', default=version, |
| 319 | + cfg.StrOpt('version', |
| 320 | + default=version, |
316 | 321 | help=('Package version to download for GitHub '
|
317 | 322 | 'sources')),
|
318 |
| - cfg.DictOpt('sha256', default=sha256)] |
| 323 | + cfg.DictOpt('sha256', |
| 324 | + default=sha256, |
| 325 | + help=('Dictionary of sha256 sums for GitHub ' |
| 326 | + 'sources')), |
| 327 | + ] |
319 | 328 |
|
320 | 329 |
|
321 | 330 | def get_user_opts(uid, gid, group):
|
|
0 commit comments