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