summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2019-01-13 10:12:30 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2019-01-14 09:14:45 (GMT)
commit5c054a0f87c91c27b1cdf26bdd918f7f0059d1c2 (patch)
treeb37549be1c24613a48e4fad66285e844cfb2f503
parent2293455d2900048c3e060d93c262e374f72a1fd9 (diff)
downloadeobuilder-5c054a0f87c91c27b1cdf26bdd918f7f0059d1c2.zip
eobuilder-5c054a0f87c91c27b1cdf26bdd918f7f0059d1c2.tar.gz
eobuilder-5c054a0f87c91c27b1cdf26bdd918f7f0059d1c2.tar.bz2
add new --hotfix cmdline arg (#29689)
-rwxr-xr-xeobuilder-ctl2
-rw-r--r--eobuilder/cmdline.py3
-rw-r--r--eobuilder/settings.py7
3 files changed, 12 insertions, 0 deletions
diff --git a/eobuilder-ctl b/eobuilder-ctl
index df35147..023186e 100755
--- a/eobuilder-ctl
+++ b/eobuilder-ctl
@@ -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
diff --git a/eobuilder/cmdline.py b/eobuilder/cmdline.py
index 4f16353..cfc61b4 100644
--- a/eobuilder/cmdline.py
+++ b/eobuilder/cmdline.py
@@ -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=[],
diff --git a/eobuilder/settings.py b/eobuilder/settings.py
index 23874cc..b08abec 100644
--- a/eobuilder/settings.py
+++ b/eobuilder/settings.py
@@ -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 = {}