add new --hotfix cmdline arg (#29689)

This commit is contained in:
Frédéric Péters 2019-01-13 11:12:30 +01:00
parent 2293455d29
commit 5c054a0f87
3 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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=[],

View File

@ -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 = {}