add new --hotfix cmdline arg (#29689)
This commit is contained in:
parent
2293455d29
commit
5c054a0f87
|
@ -141,6 +141,8 @@ def prepare_build(dist, project, cmd_options, new):
|
|||
'source_name': '',
|
||||
'names': []
|
||||
}
|
||||
if cmd_options.hotfix:
|
||||
package['repository'] = settings.HOTFIX_REPOSITORIES[dist]
|
||||
os.chdir(project['git_path'])
|
||||
build_branch = cmd_options.branch
|
||||
debian_folder = cmd_options.debian_folder
|
||||
|
|
|
@ -59,6 +59,9 @@ def parse_cmdline():
|
|||
dest="cleaning", metavar='CLEANING_METHODS',
|
||||
default=[],
|
||||
help="CLEANING_METHODS: git, deb, archives, smart and / or all")
|
||||
parser.add_option("--hotfix", action_"store_true",
|
||||
dest="hotfix", default=False,
|
||||
help="upload to hotfix repository")
|
||||
parser.add_option("-r", "--repository",
|
||||
action="extend", type="string",
|
||||
default=[],
|
||||
|
|
|
@ -32,6 +32,13 @@ DEFAULT_TESTING_REPOSITORIES = {
|
|||
"wheezy": ["wheezy-testing"],
|
||||
"squeeze": ["squeeze-testing"]
|
||||
}
|
||||
|
||||
# Hotfix repositories
|
||||
HOTFIX_REPOSITORIES = {
|
||||
"stretch": "stretch-hotfix",
|
||||
"jessie": "jessie-hotfix",
|
||||
}
|
||||
|
||||
# Specify the testing repository by source package name
|
||||
MANUAL_TESTING_REPOSITORIES = {}
|
||||
|
||||
|
|
Loading…
Reference in New Issue