misc: add a --no-send option (#15541)

This commit is contained in:
Benjamin Dauvergne 2020-10-29 09:44:50 +01:00
parent f1028ba62b
commit 5e0e71c433
2 changed files with 6 additions and 1 deletions

View File

@ -552,7 +552,10 @@ def main():
if package:
for arch in options.architectures:
build_project(dist, arch, project, package, new)
send_packages(dist, arch, project, package, last_tag)
if options.dput:
send_packages(dist, arch, project, package, last_tag)
else:
print("+ Package not sent to repository (--no-dput used).")
print("+ Add a build file to lock new build for %s" % dist)
touch(os.path.join(project['lock_path'],
"%s_%s_%s_%s.build" % (project['name'],

View File

@ -71,6 +71,8 @@ def parse_cmdline():
default=[],
dest="repositories", metavar='DISTRIBUTION:REPOSITORY, DISTRIBUTION:REPOSITORY',
help="DISTRIBUTION:REPOSITORY: strech:stretch-eobuilder, jessie:jessie-eobuilder, wheezy:wheezy-eobuilder")
parser.add_option("--no-dput", dest='dput', action="store_false", default=True,
help='do not send package to repository with dput')
(options, args) = parser.parse_args()